Class KafkaSerializationSchemaWrapper<T>

java.lang.Object
org.apache.flink.streaming.connectors.kafka.internals.KafkaSerializationSchemaWrapper<T>
All Implemented Interfaces:
Serializable, KafkaContextAware<T>, KafkaSerializationSchema<T>

@Internal @Deprecated public class KafkaSerializationSchemaWrapper<T> extends Object implements KafkaSerializationSchema<T>, KafkaContextAware<T>
Deprecated.
An adapter from old style interfaces such as SerializationSchema, FlinkKafkaPartitioner to the KafkaSerializationSchema.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    KafkaSerializationSchemaWrapper(String topic, FlinkKafkaPartitioner<T> partitioner, boolean writeTimestamp, org.apache.flink.api.common.serialization.SerializationSchema<T> serializationSchema)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getTargetTopic(T element)
    Deprecated.
    Returns the topic that the presented element should be sent to.
    void
    open(org.apache.flink.api.common.serialization.SerializationSchema.InitializationContext context)
    Deprecated.
    Initialization method for the schema.
    org.apache.kafka.clients.producer.ProducerRecord<byte[],byte[]>
    serialize(T element, Long timestamp)
    Deprecated.
    Serializes given element and returns it as a ProducerRecord.
    void
    setNumParallelInstances(int numParallelInstances)
    Deprecated.
    Sets the parallelism with which the parallel task of the Kafka Producer runs.
    void
    setParallelInstanceId(int parallelInstanceId)
    Deprecated.
    Sets the number of the parallel subtask that the Kafka Producer is running on.
    void
    setPartitions(int[] partitions)
    Deprecated.
    Sets the available partitions for the topic returned from KafkaContextAware.getTargetTopic(Object).
    void
    setWriteTimestamp(boolean writeTimestamp)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KafkaSerializationSchemaWrapper

      public KafkaSerializationSchemaWrapper(String topic, FlinkKafkaPartitioner<T> partitioner, boolean writeTimestamp, org.apache.flink.api.common.serialization.SerializationSchema<T> serializationSchema)
      Deprecated.
  • Method Details