Class 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 FlussSnapshotSplit with additional log-reading state: the log starting offset and whether the snapshot phase is already finished (used for checkpoint recovery).

    • 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.