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 of ConnectRecord 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 will be soon removed.

Use PartitionRouting instead.

This SMT allow to use a specific table column to calculate the destination partition.
Author:
Mario Fiore Vitale
  • Field Details

  • Constructor Details

    • ComputePartition

      public ComputePartition()
      Deprecated.
  • Method Details

    • config

      public org.apache.kafka.common.config.ConfigDef config()
      Deprecated.
      Specified by:
      config in interface org.apache.kafka.connect.transforms.Transformation<R extends org.apache.kafka.connect.connector.ConnectRecord<R>>
    • configure

      public void configure(Map<String,?> props)
      Deprecated.
      Specified by:
      configure in interface org.apache.kafka.common.Configurable
    • checkConfigurationConsistency

      private void checkConfigurationConsistency()
      Deprecated.
    • apply

      public R apply(R r)
      Deprecated.
      Specified by:
      apply in interface org.apache.kafka.connect.transforms.Transformation<R extends org.apache.kafka.connect.connector.ConnectRecord<R>>
    • skipRecord

      private boolean skipRecord(String table)
      Deprecated.
    • getTableName

      private String getTableName(org.apache.kafka.connect.data.Struct envelope)
      Deprecated.
    • computePartition

      private int computePartition(Object fieldValue, String table)
      Deprecated.
    • extractPayload

      private Optional<org.apache.kafka.connect.data.Struct> extractPayload(org.apache.kafka.connect.data.Struct envelope)
      Deprecated.
    • close

      public void close()
      Deprecated.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.apache.kafka.connect.transforms.Transformation<R extends org.apache.kafka.connect.connector.ConnectRecord<R>>