Package org.apache.ignite.marshalling
Interface ByteArrayMarshaller<T>
- All Superinterfaces:
Marshaller<T,
byte[]>
The ByteArrayMarshaller interface is designed to marshal and unmarshal objects to and from byte arrays. If the byte[] is your preferred
way of marshalling objects, you can implement this interface to provide custom marshalling logic.
The default implementation of the marshal method is plain java serialization.
-
Method Summary
-
Method Details
-
create
-
marshal
Description copied from interface:Marshaller
Marshal the object into raw type.- Specified by:
marshal
in interfaceMarshaller<T,
byte[]> - Parameters:
object
- object to marshal.- Returns:
- raw presentation of object.
-
unmarshal
Description copied from interface:Marshaller
Unmarshal the raw type into object.- Specified by:
unmarshal
in interfaceMarshaller<T,
byte[]> - Parameters:
raw
- raw presentation of object.- Returns:
- object.
-