Class MultiplexedDeserializer<T>
- java.lang.Object
-
- io.pravega.schemaregistry.serializer.shared.impl.AbstractDeserializer<T>
-
- io.pravega.schemaregistry.serializer.shared.impl.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.
-
-
Constructor Summary
Constructors Constructor Description MultiplexedDeserializer(java.lang.String groupId, io.pravega.schemaregistry.client.SchemaRegistryClient client, java.util.Map<java.lang.String,AbstractDeserializer<T>> deserializers, SerializerConfig.Decoders decoders, EncodingCache encodingCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tdeserialize(java.io.InputStream inputStream, io.pravega.schemaregistry.contract.data.SchemaInfo writerSchema, io.pravega.schemaregistry.contract.data.SchemaInfo readerSchema)java.nio.ByteBufferserialize(T value)-
Methods inherited from class io.pravega.schemaregistry.serializer.shared.impl.AbstractDeserializer
deserialize, isEncodeHeader
-
-
-
-
Constructor Detail
-
MultiplexedDeserializer
public MultiplexedDeserializer(java.lang.String groupId, io.pravega.schemaregistry.client.SchemaRegistryClient client, java.util.Map<java.lang.String,AbstractDeserializer<T>> deserializers, SerializerConfig.Decoders decoders, EncodingCache encodingCache)
-
-
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:
deserializein classAbstractDeserializer<T>- Throws:
java.io.IOException
-
serialize
public final java.nio.ByteBuffer serialize(T value)
- Specified by:
serializein interfaceio.pravega.client.stream.Serializer<T>
-
-