Class FlinkSourceSplit<T>
java.lang.Object
org.apache.beam.runners.flink.translation.wrappers.streaming.io.source.FlinkSourceSplit<T>
- Type Parameters:
T- The output type of the encapsulated BeamSource.
- All Implemented Interfaces:
Serializable,org.apache.flink.api.connector.source.SourceSplit
public class FlinkSourceSplit<T>
extends Object
implements org.apache.flink.api.connector.source.SourceSplit, Serializable
A Flink
SourceSplit implementation that encapsulates a Beam Source. This class
also serves as the holder of the checkpoint state of the Beam Reader created from the encapsulated source. So, the Source
can recreate the Reader from the checkpointed state upon failure recovery.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFlinkSourceSplit(int splitIndex, Source<T> beamSplitSource) FlinkSourceSplit(int splitIndex, Source<T> beamSplitSource, byte @Nullable [] splitState, @Nullable UnboundedSource.CheckpointMark checkpointMark) -
Method Summary
Modifier and TypeMethodDescriptionbyte @Nullable []static <T> org.apache.flink.core.io.SimpleVersionedSerializer<FlinkSourceSplit<T>> splitId()inttoString()
-
Constructor Details
-
FlinkSourceSplit
-
FlinkSourceSplit
public FlinkSourceSplit(int splitIndex, Source<T> beamSplitSource, byte @Nullable [] splitState, @Nullable UnboundedSource.CheckpointMark checkpointMark)
-
-
Method Details
-
splitIndex
public int splitIndex() -
getSplitState
-
getBeamSplitSource
-
splitId
- Specified by:
splitIdin interfaceorg.apache.flink.api.connector.source.SourceSplit
-
getCheckpointMark
-
toString
-
serializer
public static <T> org.apache.flink.core.io.SimpleVersionedSerializer<FlinkSourceSplit<T>> serializer()
-