Interface SerializationSchema<T>

  • Type Parameters:
    T - The type to be serialized.
    All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    SimpleStringSchema, TypeInformationSerializationSchema

    @Public
    public interface SerializationSchema<T>
    extends Serializable
    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 Detail

      • serialize

        byte[] serialize​(T element)
        Serializes the incoming element to a specified type.
        Parameters:
        element - The incoming element to be serialized
        Returns:
        The serialized element.