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:MarshallerMarshal the object into raw type.- Specified by:
marshalin interfaceMarshaller<T,byte[]> - Parameters:
object- object to marshal.- Returns:
- raw presentation of object.
-
unmarshal
Description copied from interface:MarshallerUnmarshal the raw type into object.- Specified by:
unmarshalin interfaceMarshaller<T,byte[]> - Parameters:
raw- raw presentation of object.- Returns:
- object.
-