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 ofConnectRecord
on 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
Modifier and TypeFieldDescriptionstatic final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.Deprecated.static final String
Deprecated.private static final org.slf4j.Logger
Deprecated.static final String
Deprecated.static final String
Deprecated.Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.private SmtManager<R>
Deprecated.static final String
Deprecated.static final String
Deprecated.Deprecated.static final String
Deprecated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.private void
Deprecated.void
close()
Deprecated.private int
computePartition
(Object fieldValue, String table) Deprecated.org.apache.kafka.common.config.ConfigDef
config()
Deprecated.void
Deprecated.private Optional<org.apache.kafka.connect.data.Struct>
extractPayload
(org.apache.kafka.connect.data.Struct envelope) Deprecated.private String
getTableName
(org.apache.kafka.connect.data.Struct envelope) Deprecated.private boolean
skipRecord
(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:
configure
in 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
PartitionRouting
instead.