Class DefaultTableNamingStrategy
java.lang.Object
io.debezium.connector.jdbc.naming.DefaultTableNamingStrategy
- All Implemented Interfaces:
TableNamingStrategy
Default implementation of the
TableNamingStrategy where the table name is driven
directly from the topic name, replacing any dot characters with underscore.- Author:
- Chris Cranford
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveTableName(JdbcSinkConnectorConfig config, org.apache.kafka.connect.sink.SinkRecord record) Resolves the logical table name from the sink record.
-
Constructor Details
-
DefaultTableNamingStrategy
public DefaultTableNamingStrategy()
-
-
Method Details
-
resolveTableName
public String resolveTableName(JdbcSinkConnectorConfig config, org.apache.kafka.connect.sink.SinkRecord record) Description copied from interface:TableNamingStrategyResolves the logical table name from the sink record.- Specified by:
resolveTableNamein interfaceTableNamingStrategy- Parameters:
config- sink connector configuration, should not benullrecord- Kafka sink record, should not benull- Returns:
- the resolved logical table name, never
null
-