public class WatermarkMonotonicInterval extends Object
Modifier and Type | Field and Description |
---|---|
protected Watermark |
high |
protected Watermark |
low |
protected Watermark |
lowest |
Constructor and Description |
---|
WatermarkMonotonicInterval() |
Modifier and Type | Method and Description |
---|---|
long |
checkpoint()
Move the low watermark to the highest mark.
|
Watermark |
getHigh() |
Watermark |
getLow()
Returns the low mark.
|
boolean |
isDone(long timestamp) |
long |
mark(long watermarkValue)
Take in account the watermark.
Not thread safe. |
long |
mark(Watermark watermark)
Take in account the watermark.
Not thread safe. |
String |
toString() |
public WatermarkMonotonicInterval()
public long mark(long watermarkValue)
public long checkpoint()
public boolean isDone(long timestamp)
public Watermark getLow()
Copyright © 2018 Nuxeo. All rights reserved.