Class KeyedSerializationSchemaWrapper<T>

    • Constructor Detail

      • KeyedSerializationSchemaWrapper

        public KeyedSerializationSchemaWrapper​(org.apache.flink.api.common.serialization.SerializationSchema<T> serializationSchema)
    • Method Detail

      • getSerializationSchema

        public org.apache.flink.api.common.serialization.SerializationSchema<T> getSerializationSchema()
      • serializeKey

        public byte[] serializeKey​(T element)
        Description copied from interface: KeyedSerializationSchema
        Serializes the key of the incoming element to a byte array This method might return null if no key is available.
        Specified by:
        serializeKey in interface KeyedSerializationSchema<T>
        Parameters:
        element - The incoming element to be serialized
        Returns:
        the key of the element as a byte array
      • serializeValue

        public byte[] serializeValue​(T element)
        Description copied from interface: KeyedSerializationSchema
        Serializes the value of the incoming element to a byte array.
        Specified by:
        serializeValue in interface KeyedSerializationSchema<T>
        Parameters:
        element - The incoming element to be serialized
        Returns:
        the value of the element as a byte array
      • getTargetTopic

        public String getTargetTopic​(T element)
        Description copied from interface: KeyedSerializationSchema
        Optional method to determine the target topic for the element.
        Specified by:
        getTargetTopic in interface KeyedSerializationSchema<T>
        Parameters:
        element - Incoming element to determine the target topic from
        Returns:
        null or the target topic