Class MultiplexedDeserializer<T>

  • Type Parameters:
    T - Type of object.
    All Implemented Interfaces:
    io.pravega.client.stream.Serializer<T>

    public class MultiplexedDeserializer<T>
    extends AbstractDeserializer<T>
    Deserializer which multiplexes for multiple object types. Based on the supplied object, it invokes the deserializer for that object type.
    • Field Summary

      • Fields inherited from interface io.pravega.client.stream.Serializer

        MAX_EVENT_SIZE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T deserialize​(java.io.InputStream inputStream, io.pravega.schemaregistry.contract.data.SchemaInfo writerSchema, io.pravega.schemaregistry.contract.data.SchemaInfo readerSchema)  
      java.nio.ByteBuffer serialize​(T value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • deserialize

        public final T deserialize​(java.io.InputStream inputStream,
                                   io.pravega.schemaregistry.contract.data.SchemaInfo writerSchema,
                                   io.pravega.schemaregistry.contract.data.SchemaInfo readerSchema)
                            throws java.io.IOException
        Specified by:
        deserialize in class AbstractDeserializer<T>
        Throws:
        java.io.IOException
      • serialize

        public final java.nio.ByteBuffer serialize​(T value)
        Specified by:
        serialize in interface io.pravega.client.stream.Serializer<T>