Class SerializationDelegate<T>

  • Type Parameters:
    T - The type to be represented as an IOReadableWritable.
    All Implemented Interfaces:
    IOReadableWritable

    public class SerializationDelegate<T>
    extends Object
    implements 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​(TypeSerializer<T> serializer)
    • Method Detail

      • setInstance

        public void setInstance​(T instance)
      • getInstance

        public T getInstance()
      • read

        public void read​(DataInputView in)
                  throws IOException
        Description copied from interface: IOReadableWritable
        Reads the object's internal data from the given data input view.
        Specified by:
        read in interface IOReadableWritable
        Parameters:
        in - the input view to read the data from
        Throws:
        IOException - thrown if any error occurs while reading from the input stream