Package org.apache.ignite.marshaller
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
-
Method Details
-
getSupportedType
Class<?> getSupportedType()Gets supported type.- Returns:
- Supported type.
-
marshal
Marshals object to byte array.- Parameters:
obj- Object to marshal.nullobject will be marshaled to binarynullrepresentation.- Returns:
- Byte array.
- Throws:
IgniteCheckedException- If marshalling failed.
-
unmarshal
Unmarshals object from byte array.- Parameters:
arr- Byte array.- Returns:
- Unmarshalled object.
- Throws:
IgniteCheckedException- If unmarshalling failed.
-