Class FlussHybridSnapshotLogSplit
- java.lang.Object
-
- org.apache.flink.cdc.connectors.fluss.source.split.FlussSplitBase
-
- org.apache.flink.cdc.connectors.fluss.source.split.FlussSnapshotSplit
-
- org.apache.flink.cdc.connectors.fluss.source.split.FlussHybridSnapshotLogSplit
-
- All Implemented Interfaces:
org.apache.flink.api.connector.source.SourceSplit
public class FlussHybridSnapshotLogSplit extends FlussSnapshotSplit
A split that first reads a full KV snapshot from a Fluss table bucket, then switches to reading change log from the snapshot's log offset. This is used by the "full" startup mode for primary key tables.Extends
FlussSnapshotSplitwith additional log-reading state: the log starting offset and whether the snapshot phase is already finished (used for checkpoint recovery).
-
-
Field Summary
-
Fields inherited from class org.apache.flink.cdc.connectors.fluss.source.split.FlussSplitBase
rowType, schemaId, tableBucket, tablePath
-
-
Constructor Summary
Constructors Constructor Description FlussHybridSnapshotLogSplit(org.apache.fluss.metadata.PhysicalTablePath tablePath, org.apache.fluss.metadata.TableBucket tableBucket, long snapshotId, long logStartingOffset)Creates a new hybrid split with snapshot not yet finished.FlussHybridSnapshotLogSplit(org.apache.fluss.metadata.PhysicalTablePath tablePath, org.apache.fluss.metadata.TableBucket tableBucket, long snapshotId, long recordsToSkip, long logStartingOffset, boolean snapshotFinished, Integer schemaId, org.apache.fluss.types.RowType rowType)Full constructor with schema info, typically used during checkpoint recovery.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetLogStartingOffset()inthashCode()booleanisSnapshotFinished()StringtoString()-
Methods inherited from class org.apache.flink.cdc.connectors.fluss.source.split.FlussSnapshotSplit
getRecordsToSkip, getSnapshotId
-
Methods inherited from class org.apache.flink.cdc.connectors.fluss.source.split.FlussSplitBase
asHybridSnapshotLogSplit, asLogSplit, asSnapshotSplit, getPhysicalTablePath, getRowType, getSchemaId, getTableBucket, getTablePath, isHybridSnapshotLogSplit, isLogSplit, isSnapshotSplit, splitId
-
-
-
-
Constructor Detail
-
FlussHybridSnapshotLogSplit
public FlussHybridSnapshotLogSplit(org.apache.fluss.metadata.PhysicalTablePath tablePath, org.apache.fluss.metadata.TableBucket tableBucket, long snapshotId, long logStartingOffset)Creates a new hybrid split with snapshot not yet finished.
-
FlussHybridSnapshotLogSplit
public FlussHybridSnapshotLogSplit(org.apache.fluss.metadata.PhysicalTablePath tablePath, org.apache.fluss.metadata.TableBucket tableBucket, long snapshotId, long recordsToSkip, long logStartingOffset, boolean snapshotFinished, @Nullable Integer schemaId, @Nullable org.apache.fluss.types.RowType rowType)Full constructor with schema info, typically used during checkpoint recovery.
-
-
Method Detail
-
getLogStartingOffset
public long getLogStartingOffset()
-
isSnapshotFinished
public boolean isSnapshotFinished()
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classFlussSnapshotSplit
-
hashCode
public int hashCode()
- Overrides:
hashCodein classFlussSnapshotSplit
-
toString
public String toString()
- Overrides:
toStringin classFlussSnapshotSplit
-
-