Class CheckpointedCollectResultBuffer<T>
java.lang.Object
org.apache.flink.streaming.api.operators.collect.AbstractCollectResultBuffer<T>
org.apache.flink.streaming.api.operators.collect.CheckpointedCollectResultBuffer<T>
A buffer which encapsulates the logic of dealing with the response from the
CollectSinkFunction. It will consider the checkpoint related fields in the response. See Java
doc of CollectSinkFunction for explanation of this communication protocol.-
Constructor Summary
ConstructorsConstructorDescriptionCheckpointedCollectResultBuffer(org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidmaintainVisibility(long currentVisiblePos, long lastCheckpointedOffset) protected voidsinkRestarted(long lastCheckpointedOffset) Methods inherited from class org.apache.flink.streaming.api.operators.collect.AbstractCollectResultBuffer
complete, dealWithResponse, getOffset, getVersion, makeResultsVisible, next, reset, revert
-
Constructor Details
-
CheckpointedCollectResultBuffer
public CheckpointedCollectResultBuffer(org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)
-
-
Method Details
-
sinkRestarted
protected void sinkRestarted(long lastCheckpointedOffset) - Specified by:
sinkRestartedin classAbstractCollectResultBuffer<T>
-
maintainVisibility
protected void maintainVisibility(long currentVisiblePos, long lastCheckpointedOffset) - Specified by:
maintainVisibilityin classAbstractCollectResultBuffer<T>
-