Class LocalSnapshotStateSerializer
java.lang.Object
org.apache.ignite.internal.versioned.VersionedSerializer<LocalSnapshotState>
org.gridgain.internal.snapshots.communication.metastorage.LocalSnapshotStateSerializer
public class LocalSnapshotStateSerializer
extends org.apache.ignite.internal.versioned.VersionedSerializer<LocalSnapshotState>
Versioned serializer for
LocalSnapshotState instances.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalSnapshotStatedeserialize(byte[] bytes) Deserializes a state from bytes.protected LocalSnapshotStatereadExternalData(byte protoVer, org.apache.ignite.internal.util.io.IgniteDataInput in) static byte[]serialize(LocalSnapshotState state) Serializes a state to bytes.protected voidwriteExternalData(LocalSnapshotState state, org.apache.ignite.internal.util.io.IgniteDataOutput out) Methods inherited from class org.apache.ignite.internal.versioned.VersionedSerializer
getProtocolVersion, readByteArrayWithLength, readExternal, readNullableString, readNullableUuid, readStringSet, readUuidSet, readVarIntSet, writeByteArrayWithLength, writeExternal, writeNullableString, writeNullableUuid, writeStringSet, writeUuidSet, writeVarIntSet
-
Field Details
-
INSTANCE
Serializer instance.
-
-
Constructor Details
-
LocalSnapshotStateSerializer
public LocalSnapshotStateSerializer()
-
-
Method Details
-
writeExternalData
protected void writeExternalData(LocalSnapshotState state, org.apache.ignite.internal.util.io.IgniteDataOutput out) throws IOException - Specified by:
writeExternalDatain classorg.apache.ignite.internal.versioned.VersionedSerializer<LocalSnapshotState>- Throws:
IOException
-
readExternalData
protected LocalSnapshotState readExternalData(byte protoVer, org.apache.ignite.internal.util.io.IgniteDataInput in) throws IOException - Specified by:
readExternalDatain classorg.apache.ignite.internal.versioned.VersionedSerializer<LocalSnapshotState>- Throws:
IOException
-
serialize
Serializes a state to bytes.- Parameters:
state- State to serialize.
-
deserialize
Deserializes a state from bytes.- Parameters:
bytes- Bytes to deserialize.
-