Class MySqlSnapshotSplit
- java.lang.Object
-
- org.apache.flink.cdc.connectors.mysql.source.split.MySqlSplit
-
- org.apache.flink.cdc.connectors.mysql.source.split.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.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.cdc.connectors.mysql.source.split.MySqlSplit
splitId
-
-
Constructor Summary
Constructors Constructor Description 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.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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static intextractChunkId(String splitId)static io.debezium.relational.TableIdextractTableId(String splitId)static StringgenerateSplitId(io.debezium.relational.TableId tableId, int chunkId)BinlogOffsetgetHighWatermark()Object[]getSplitEnd()org.apache.flink.table.types.logical.RowTypegetSplitKeyType()Object[]getSplitStart()io.debezium.relational.TableIdgetTableId()Map<io.debezium.relational.TableId,io.debezium.relational.history.TableChanges.TableChange>getTableSchemas()inthashCode()booleanisSnapshotReadFinished()MySqlSchemalessSnapshotSplittoSchemalessSnapshotSplit()Casts this split into aMySqlSchemalessSnapshotSplit.StringtoString()-
Methods inherited from class org.apache.flink.cdc.connectors.mysql.source.split.MySqlSplit
asBinlogSplit, asSnapshotSplit, isBinlogSplit, isSnapshotSplit, splitId
-
-
-
-
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 asgenerateSplitId(TableId, int). Or else the parsing method will fail. See more inextractTableId(String)andextractChunkId(String).
-
-
Method Detail
-
getTableId
public io.debezium.relational.TableId getTableId()
-
getHighWatermark
@Nullable public BinlogOffset getHighWatermark()
-
isSnapshotReadFinished
public boolean isSnapshotReadFinished()
-
getTableSchemas
public Map<io.debezium.relational.TableId,io.debezium.relational.history.TableChanges.TableChange> getTableSchemas()
- Specified by:
getTableSchemasin classMySqlSplit
-
toSchemalessSnapshotSplit
public final MySqlSchemalessSnapshotSplit toSchemalessSnapshotSplit()
Casts this split into aMySqlSchemalessSnapshotSplit.
-
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)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classMySqlSplit
-
getSplitKeyType
public org.apache.flink.table.types.logical.RowType getSplitKeyType()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classMySqlSplit
-
-