public class BoundedOutOfOrderWatermarkGenerator extends WatermarkGenerator
Emits watermarks which are the observed timestamp minus the specified delay.
Constructor and Description |
---|
BoundedOutOfOrderWatermarkGenerator(int rowtimeIndex,
long delay) |
Modifier and Type | Method and Description |
---|---|
Long |
currentWatermark(RowData row)
Returns the watermark for the current row or null if no watermark should be generated.
|
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContext
public BoundedOutOfOrderWatermarkGenerator(int rowtimeIndex, long delay)
rowtimeIndex
- the field index of rowtime attribute, the value of rowtime should never
be null.delay
- The delay by which watermarks are behind the observed timestamp.@Nullable public Long currentWatermark(RowData row)
WatermarkGenerator
currentWatermark
in class WatermarkGenerator
row
- The current row.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.