Class FlussSplitState
- java.lang.Object
-
- org.apache.flink.cdc.connectors.fluss.source.split.FlussSplitState
-
- Direct Known Subclasses:
FlussHybridSnapshotLogSplitState,FlussLogSplitState
public abstract class FlussSplitState extends Object
Abstract base class for the mutable state of aFlussSplitBase. Concrete subclasses track the reading progress for each split type and convert back to an immutable split on checkpoint.
-
-
Field Summary
Fields Modifier and Type Field Description protected FlussSplitBasesplit
-
Constructor Summary
Constructors Constructor Description FlussSplitState(FlussSplitBase split)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description FlussHybridSnapshotLogSplitStateasHybridSnapshotLogSplitState()Casts this split state into aFlussHybridSnapshotLogSplitState.FlussLogSplitStateasLogSplitState()Casts this split state into aFlussLogSplitState.org.apache.fluss.types.RowTypegetRowType()IntegergetSchemaId()booleanisHybridSnapshotLogSplitState()Checks whether this split state is a hybrid snapshot log split state.booleanisLogSplitState()Checks whether this split state is a log split state.abstract FlussSplitBasetoFlussSplit()Converts this mutable state back to an immutable split for checkpointing.voidupdateSchema(int schemaId, org.apache.fluss.types.RowType rowType)Updates the schema tracking with the latest schemaId and corresponding RowType.
-
-
-
Field Detail
-
split
protected final FlussSplitBase split
-
-
Constructor Detail
-
FlussSplitState
public FlussSplitState(FlussSplitBase split)
-
-
Method Detail
-
isHybridSnapshotLogSplitState
public final boolean isHybridSnapshotLogSplitState()
Checks whether this split state is a hybrid snapshot log split state.
-
isLogSplitState
public final boolean isLogSplitState()
Checks whether this split state is a log split state.
-
asHybridSnapshotLogSplitState
public final FlussHybridSnapshotLogSplitState asHybridSnapshotLogSplitState()
Casts this split state into aFlussHybridSnapshotLogSplitState.
-
asLogSplitState
public final FlussLogSplitState asLogSplitState()
Casts this split state into aFlussLogSplitState.
-
toFlussSplit
public abstract FlussSplitBase toFlussSplit()
Converts this mutable state back to an immutable split for checkpointing.
-
getRowType
@Nullable public org.apache.fluss.types.RowType getRowType()
-
updateSchema
public void updateSchema(int schemaId, org.apache.fluss.types.RowType rowType)Updates the schema tracking with the latest schemaId and corresponding RowType. Called by the record emitter when processing records.
-
-