Class SerializationDelegate<T>

  • Type Parameters:
    T - The type to be represented as an IOReadableWritable.
    All Implemented Interfaces:
    org.apache.flink.core.io.IOReadableWritable

    public class SerializationDelegate<T>
    extends Object
    implements org.apache.flink.core.io.IOReadableWritable
    The serialization delegate exposes an arbitrary element as a IOReadableWritable for serialization, with the help of a type serializer.
    • Constructor Detail

      • SerializationDelegate

        public SerializationDelegate​(org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)
    • Method Detail

      • setInstance

        public void setInstance​(T instance)
      • getInstance

        public T getInstance()
      • write

        public void write​(org.apache.flink.core.memory.DataOutputView out)
                   throws IOException
        Specified by:
        write in interface org.apache.flink.core.io.IOReadableWritable
        Throws:
        IOException
      • read

        public void read​(org.apache.flink.core.memory.DataInputView in)
                  throws IOException
        Specified by:
        read in interface org.apache.flink.core.io.IOReadableWritable
        Throws:
        IOException