Interface Marshaller

All Known Implementing Classes:
ByteArrayMarshaller, IntegerMarshaller, LongMarshaller, ObjectDataUnitMarshaller, StringMarshaller

public interface Marshaller
Marshaller allows to marshal or unmarshal objects in store. It provides serialization/deserialization mechanism for all persistent instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets supported type.
    byte[]
    marshal(Object object)
    Marshals object to byte array.
    unmarshal(byte[] arr)
    Unmarshals object from byte array.
  • Method Details

    • getSupportedType

      Class<?> getSupportedType()
      Gets supported type.
      Returns:
      Supported type.
    • marshal

      byte[] marshal(Object object) throws IgniteCheckedException
      Marshals object to byte array.
      Parameters:
      obj - Object to marshal. null object will be marshaled to binary null representation.
      Returns:
      Byte array.
      Throws:
      IgniteCheckedException - If marshalling failed.
    • unmarshal

      Object unmarshal(byte[] arr) throws IgniteCheckedException
      Unmarshals object from byte array.
      Parameters:
      arr - Byte array.
      Returns:
      Unmarshalled object.
      Throws:
      IgniteCheckedException - If unmarshalling failed.