Interface KeyedSerializationSchema<T>

Type Parameters:
T - The type to be serialized.
All Superinterfaces:
Serializable
All Known Implementing Classes:
KeyedSerializationSchemaWrapper, TypeInformationKeyValueSerializationSchema

@Deprecated @PublicEvolving public interface KeyedSerializationSchema<T> extends Serializable
Deprecated.
The serialization schema describes how to turn a data object into a different serialized representation. Most data sinks (for example Apache Kafka) require the data to be handed to them in a specific format (for example as byte strings).
  • Method Summary

    Modifier and Type
    Method
    Description
    getTargetTopic(T element)
    Deprecated.
    Optional method to determine the target topic for the element.
    byte[]
    serializeKey(T element)
    Deprecated.
    Serializes the key of the incoming element to a byte array This method might return null if no key is available.
    byte[]
    serializeValue(T element)
    Deprecated.
    Serializes the value of the incoming element to a byte array.
  • Method Details

    • serializeKey

      byte[] serializeKey(T element)
      Deprecated.
      Serializes the key of the incoming element to a byte array This method might return null if no key is available.
      Parameters:
      element - The incoming element to be serialized
      Returns:
      the key of the element as a byte array
    • serializeValue

      byte[] serializeValue(T element)
      Deprecated.
      Serializes the value of the incoming element to a byte array.
      Parameters:
      element - The incoming element to be serialized
      Returns:
      the value of the element as a byte array
    • getTargetTopic

      String getTargetTopic(T element)
      Deprecated.
      Optional method to determine the target topic for the element.
      Parameters:
      element - Incoming element to determine the target topic from
      Returns:
      null or the target topic