Package io.pravega.common.io.serialization
-
Interface Summary Interface Description RandomAccessOutputStream Defines an extension to OutputStream that allows writing to an arbitrary position.RevisionDataInput Extension to DataInput that adds support for a few new constructs.RevisionDataInput.ElementDeserializer<T> Defines a Function signature that can deserialize an element from a RevisionDataInput.RevisionDataOutput Extension to DataOutput that adds support for a few new constructs and supports formatting a Serialization Revision.RevisionDataOutput.ElementSerializer<T> Defines a Function signature that can serialize an element to aRevisionDataOutput
.VersionedSerializer.StreamReader<ReaderType> Defines a Function that deserializes data from a RevisionDataInput into a target Object.VersionedSerializer.StreamWriter<TargetType> Defines a Function that serializes an Object to a RevisionDataOutput. -
Class Summary Class Description VersionedSerializer<T> Custom serializer base class that supports backward and forward compatibility.VersionedSerializer.Direct<TargetType> A Single-Type VersionedDeserializer that serializes and deserializes into the same object.VersionedSerializer.FormatVersion<TargetType,ReaderType> Represents a Version of a Format.VersionedSerializer.MultiType<BaseType> A VersionedDeserializer that serializes deserializes objects instantiating different types that inherit from a single base type.VersionedSerializer.WithBuilder<TargetType,ReaderType extends ObjectBuilder<TargetType>> A Single-Type VersionedDeserializer that deserializes into a "Builder" object.