Class TiKVReadableMetadata
- java.lang.Object
-
- org.apache.flink.cdc.connectors.tidb.table.TiKVReadableMetadata
-
public class TiKVReadableMetadata extends Object
Defines the supported metadata columns forTiDBTableSource.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TiKVReadableMetadatacreateDatabaseNameMetadata(String database)Name of the database that contain the row.static TiKVReadableMetadatacreateOpTsMetadata()It indicates the time that the change was made in the database.static TiKVReadableMetadatacreateTableNameMetadata(String tableName)Name of the table that contain the row.static TiKVReadableMetadata[]createTiKVReadableMetadata(String database, String tableName)TiKVMetadataConvertergetConverter()org.apache.flink.table.types.DataTypegetDataType()StringgetKey()
-
-
-
Method Detail
-
getKey
public String getKey()
-
getDataType
public org.apache.flink.table.types.DataType getDataType()
-
getConverter
public TiKVMetadataConverter getConverter()
-
createTableNameMetadata
public static TiKVReadableMetadata createTableNameMetadata(String tableName)
Name of the table that contain the row.
-
createDatabaseNameMetadata
public static TiKVReadableMetadata createDatabaseNameMetadata(String database)
Name of the database that contain the row.
-
createOpTsMetadata
public static TiKVReadableMetadata createOpTsMetadata()
It indicates the time that the change was made in the database. If the record is read from snapshot of the table instead of the change stream, the value is always 0.
-
createTiKVReadableMetadata
public static TiKVReadableMetadata[] createTiKVReadableMetadata(String database, String tableName)
-
-