@PublicEvolving public final class AscendingTimestamps extends PeriodicWatermarkAssigner
Emits a watermark of the maximum observed timestamp so far minus 1. Rows that have a timestamp equal to the max timestamp are not late.
Constructor and Description |
---|
AscendingTimestamps() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
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 void nextTimestamp(long timestamp)
PeriodicWatermarkAssigner
nextTimestamp
in class PeriodicWatermarkAssigner
timestamp
- The next timestamp to update the assigner.public Map<String,String> toProperties()
WatermarkStrategy
toProperties
in interface Descriptor
toProperties
in class WatermarkStrategy
public Watermark getWatermark()
PeriodicWatermarkAssigner
getWatermark
in class PeriodicWatermarkAssigner
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.