Class MySqlSnapshotSplit

  • All Implemented Interfaces:
    org.apache.flink.api.connector.source.SourceSplit
    Direct Known Subclasses:
    MySqlSchemalessSnapshotSplit

    public class MySqlSnapshotSplit
    extends MySqlSplit
    The split to describe a split of a MySql table snapshot.
    • Constructor Detail

      • MySqlSnapshotSplit

        public MySqlSnapshotSplit​(io.debezium.relational.TableId tableId,
                                  int chunkId,
                                  org.apache.flink.table.types.logical.RowType splitKeyType,
                                  Object[] splitStart,
                                  Object[] splitEnd,
                                  BinlogOffset highWatermark,
                                  Map<io.debezium.relational.TableId,​io.debezium.relational.history.TableChanges.TableChange> tableSchemas)
        Create a SnapshotSplit with generating splitId with the given tableId and chunkId.
        See Also:
        generateSplitId(TableId, int)
      • MySqlSnapshotSplit

        @Internal
        public MySqlSnapshotSplit​(io.debezium.relational.TableId tableId,
                                  String splitId,
                                  org.apache.flink.table.types.logical.RowType splitKeyType,
                                  Object[] splitStart,
                                  Object[] splitEnd,
                                  BinlogOffset highWatermark,
                                  Map<io.debezium.relational.TableId,​io.debezium.relational.history.TableChanges.TableChange> tableSchemas)
        This constructor should not be used directly. Please use the other constructor. If this constructor must be invoked, please use the same format for the splitId as generateSplitId(TableId, int). Or else the parsing method will fail. See more in extractTableId(String) and extractChunkId(String).
    • Method Detail

      • getTableId

        public io.debezium.relational.TableId getTableId()
      • isSnapshotReadFinished

        public boolean isSnapshotReadFinished()
      • getTableSchemas

        public Map<io.debezium.relational.TableId,​io.debezium.relational.history.TableChanges.TableChange> getTableSchemas()
        Specified by:
        getTableSchemas in class MySqlSplit
      • generateSplitId

        public static String generateSplitId​(io.debezium.relational.TableId tableId,
                                             int chunkId)
      • extractTableId

        public static io.debezium.relational.TableId extractTableId​(String splitId)
      • extractChunkId

        public static int extractChunkId​(String splitId)
      • getSplitKeyType

        public org.apache.flink.table.types.logical.RowType getSplitKeyType()