Package org.apache.ignite.binary
Interface Binarylizable
- 
- All Known Implementing Classes:
- IgniteUuid
 
 public interface BinarylizableInterface that allows to implement custom serialization logic for binary objects. IgniteObject is not required to implement this interface, in which case Ignite will automatically serialize binary objects using reflection.This interface, in a way, is analogous to Externalizableinterface, which allows users to override default serialization logic, usually for performance reasons. The only difference here is that binary serialization is already very fast and implementing custom serialization logic for binary does not provide significant performance gains.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidreadBinary(BinaryReader reader)Reads fields from provided reader.voidwriteBinary(BinaryWriter writer)Writes fields to provided writer.
 
- 
- 
- 
Method Detail- 
writeBinaryvoid writeBinary(BinaryWriter writer) throws BinaryObjectException Writes fields to provided writer.- Parameters:
- writer- Binary object writer.
- Throws:
- BinaryObjectException- In case of error.
 
 - 
readBinaryvoid readBinary(BinaryReader reader) throws BinaryObjectException Reads fields from provided reader.- Parameters:
- reader- Binary object reader.
- Throws:
- BinaryObjectException- In case of error.
 
 
- 
 
-