Class AbstractDeserializer<T>
- java.lang.Object
-
- io.pravega.schemaregistry.serializer.shared.impl.AbstractDeserializer<T>
-
- All Implemented Interfaces:
io.pravega.client.stream.Serializer<T>
- Direct Known Subclasses:
MultiplexedAndGenericDeserializer,MultiplexedDeserializer
public abstract class AbstractDeserializer<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDeserializer(java.lang.String groupId, io.pravega.schemaregistry.client.SchemaRegistryClient client, Schema<T> schema, boolean skipHeaders, SerializerConfig.Decoders decoders, EncodingCache encodingCache, boolean encodeHeader)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Tdeserialize(java.io.InputStream inputStream, io.pravega.schemaregistry.contract.data.SchemaInfo writerSchema, io.pravega.schemaregistry.contract.data.SchemaInfo readerSchema)Tdeserialize(java.nio.ByteBuffer data)protected booleanisEncodeHeader()java.nio.ByteBufferserialize(T value)
-
-
-
Constructor Detail
-
AbstractDeserializer
protected AbstractDeserializer(java.lang.String groupId, io.pravega.schemaregistry.client.SchemaRegistryClient client, @Nullable Schema<T> schema, boolean skipHeaders, SerializerConfig.Decoders decoders, EncodingCache encodingCache, boolean encodeHeader)
-
-
Method Detail
-
deserialize
public T deserialize(java.nio.ByteBuffer data)
-
deserialize
public abstract T deserialize(java.io.InputStream inputStream, io.pravega.schemaregistry.contract.data.SchemaInfo writerSchema, io.pravega.schemaregistry.contract.data.SchemaInfo readerSchema) throws java.io.IOException
- Throws:
java.io.IOException
-
isEncodeHeader
protected boolean isEncodeHeader()
-
serialize
public final java.nio.ByteBuffer serialize(T value)
- Specified by:
serializein interfaceio.pravega.client.stream.Serializer<T>
-
-