@PublicEvolving public final class BoundedOutOfOrderTimestamps extends PeriodicWatermarkAssigner
Emits watermarks which are the maximum observed timestamp minus the specified delay.
Constructor and Description |
---|
BoundedOutOfOrderTimestamps(long delay) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Watermark |
getWatermark()
Returns the current watermark.
|
int |
hashCode() |
void |
nextTimestamp(long timestamp)
Updates the assigner with the next timestamp.
|
Map<String,String> |
toProperties()
This method is a default implementation that uses java serialization and it is discouraged.
|
public BoundedOutOfOrderTimestamps(long delay)
delay
- The delay by which watermarks are behind the maximum observed timestamp.public void nextTimestamp(long timestamp)
PeriodicWatermarkAssigner
nextTimestamp
in class PeriodicWatermarkAssigner
timestamp
- The next timestamp to update the assigner.public Watermark getWatermark()
PeriodicWatermarkAssigner
getWatermark
in class PeriodicWatermarkAssigner
public Map<String,String> toProperties()
WatermarkStrategy
toProperties
in interface Descriptor
toProperties
in class WatermarkStrategy
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.