Class ComputePartition<R extends org.apache.kafka.connect.connector.ConnectRecord<R>>
java.lang.Object
io.debezium.transforms.partitions.ComputePartition<R>
- Type Parameters:
R- the subtype ofConnectRecordon which this transformation will operate
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.kafka.common.Configurable,org.apache.kafka.connect.transforms.Transformation<R>
@Deprecated
public class ComputePartition<R extends org.apache.kafka.connect.connector.ConnectRecord<R>>
extends Object
implements org.apache.kafka.connect.transforms.Transformation<R>
Deprecated.
This SMT allow to use a specific table column to calculate the destination partition.
- Author:
- Mario Fiore Vitale
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.Deprecated.static final StringDeprecated.private static final org.slf4j.LoggerDeprecated.static final StringDeprecated.static final StringDeprecated.Deprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.private SmtManager<R>Deprecated.static final StringDeprecated.static final StringDeprecated.Deprecated.static final StringDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.private voidDeprecated.voidclose()Deprecated.private intcomputePartition(Object fieldValue, String table) Deprecated.org.apache.kafka.common.config.ConfigDefconfig()Deprecated.voidDeprecated.private Optional<org.apache.kafka.connect.data.Struct>extractPayload(org.apache.kafka.connect.data.Struct envelope) Deprecated.private StringgetTableName(org.apache.kafka.connect.data.Struct envelope) Deprecated.private booleanskipRecord(String table) Deprecated.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGERDeprecated. -
SCHEMA_FIELD_NAME
Deprecated.- See Also:
-
SQLSERVER_CONNECTOR
Deprecated.- See Also:
-
KEYSPACE_FIELD_NAME
Deprecated.- See Also:
-
TABLE_FIELD_NAME
Deprecated.- See Also:
-
COLLECTION_FIELD_NAME
Deprecated.- See Also:
-
CONNECTOR_FIELD_NAME
Deprecated.- See Also:
-
MONGODB_CONNECTOR
Deprecated.- See Also:
-
DB_FIELD_NAME
Deprecated.- See Also:
-
MYSQL_CONNECTOR
Deprecated.- See Also:
-
POSTGRES_CONNECTOR
Deprecated.- See Also:
-
ORACLE_CONNECTOR
Deprecated.- See Also:
-
DB2_CONNECTOR
Deprecated.- See Also:
-
CASSANDRA_CONNECTOR
Deprecated.- See Also:
-
VITESS_CONNECTOR
Deprecated.- See Also:
-
tableNames
Deprecated. -
smtManager
Deprecated. -
numberOfPartitionsByTable
Deprecated. -
fieldNameByTable
Deprecated.
-
-
Constructor Details
-
ComputePartition
public ComputePartition()Deprecated.
-
-
Method Details
-
config
public org.apache.kafka.common.config.ConfigDef config()Deprecated. -
configure
Deprecated.- Specified by:
configurein interfaceorg.apache.kafka.common.Configurable
-
checkConfigurationConsistency
private void checkConfigurationConsistency()Deprecated. -
apply
Deprecated. -
skipRecord
Deprecated. -
getTableName
Deprecated. -
computePartition
Deprecated. -
extractPayload
private Optional<org.apache.kafka.connect.data.Struct> extractPayload(org.apache.kafka.connect.data.Struct envelope) Deprecated. -
close
public void close()Deprecated.
-
Use
PartitionRoutinginstead.