Class BoundedOutOfOrderTimestamps
java.lang.Object
org.apache.flink.table.sources.wmstrategies.WatermarkStrategy
org.apache.flink.table.sources.wmstrategies.PeriodicWatermarkAssigner
org.apache.flink.table.sources.wmstrategies.BoundedOutOfOrderTimestamps
- All Implemented Interfaces:
Serializable,org.apache.flink.table.legacy.descriptors.Descriptor
A watermark strategy for rowtime attributes which are out-of-order by a bounded time interval.
Emits watermarks which are the maximum observed timestamp minus the specified delay.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.apache.flink.streaming.api.watermark.WatermarkReturns the current watermark.inthashCode()voidnextTimestamp(long timestamp) Updates the assigner with the next timestamp.
-
Constructor Details
-
BoundedOutOfOrderTimestamps
public BoundedOutOfOrderTimestamps(long delay) - Parameters:
delay- The delay by which watermarks are behind the maximum observed timestamp.
-
-
Method Details
-
nextTimestamp
public void nextTimestamp(long timestamp) Description copied from class:PeriodicWatermarkAssignerUpdates the assigner with the next timestamp.- Specified by:
nextTimestampin classPeriodicWatermarkAssigner- Parameters:
timestamp- The next timestamp to update the assigner.
-
getWatermark
public org.apache.flink.streaming.api.watermark.Watermark getWatermark()Description copied from class:PeriodicWatermarkAssignerReturns the current watermark.- Specified by:
getWatermarkin classPeriodicWatermarkAssigner- Returns:
- The current watermark.
-
toProperties
- Specified by:
toPropertiesin interfaceorg.apache.flink.table.legacy.descriptors.Descriptor- Overrides:
toPropertiesin classorg.apache.flink.table.sources.wmstrategies.WatermarkStrategy
-
equals
-
hashCode
public int hashCode()
-