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 Details

  • 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:
      writeExternalData in class org.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:
      readExternalData in class org.apache.ignite.internal.versioned.VersionedSerializer<LocalSnapshotState>
      Throws:
      IOException
    • serialize

      public static byte[] serialize(LocalSnapshotState state)
      Serializes a state to bytes.
      Parameters:
      state - State to serialize.
    • deserialize

      public static LocalSnapshotState deserialize(byte[] bytes)
      Deserializes a state from bytes.
      Parameters:
      bytes - Bytes to deserialize.