@Internal public final class WatermarkToDataOutput extends Object implements WatermarkOutput
WatermarkOutput
based on a PushingAsyncDataInput.DataOutput
.Constructor and Description |
---|
WatermarkToDataOutput(PushingAsyncDataInput.DataOutput<?> output) |
WatermarkToDataOutput(PushingAsyncDataInput.DataOutput<?> output,
TimestampsAndWatermarks.WatermarkUpdateListener watermarkEmitted)
Creates a new WatermarkOutput against the given DataOutput.
|
Modifier and Type | Method and Description |
---|---|
void |
emitWatermark(Watermark watermark)
Emits the given watermark.
|
void |
markActive()
Marks this output as active, meaning that downstream operations should wait for watermarks
from this output.
|
void |
markIdle()
Marks this output as idle, meaning that downstream operations do not wait for watermarks from
this output.
|
@VisibleForTesting public WatermarkToDataOutput(PushingAsyncDataInput.DataOutput<?> output)
public WatermarkToDataOutput(PushingAsyncDataInput.DataOutput<?> output, TimestampsAndWatermarks.WatermarkUpdateListener watermarkEmitted)
public void emitWatermark(Watermark watermark)
WatermarkOutput
Emitting a watermark also implicitly marks the stream as active, ending previously marked idleness.
emitWatermark
in interface WatermarkOutput
public void markIdle()
WatermarkOutput
An output becomes active again as soon as the next watermark is emitted or WatermarkOutput.markActive()
is explicitly called.
markIdle
in interface WatermarkOutput
public void markActive()
WatermarkOutput
markActive
in interface WatermarkOutput
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.