Class OptimizedMarshaller
java.lang.Object
org.gridgain.internal.dr.optimized.OptimizedMarshaller
Optimized marshaller.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadOptimized(byte[] arr, int start, int len) Unmarshal object.static @Nullable UUIDReads UUID from input stream.static voidwriteUuid(DataOutput out, UUID uid) Writes UUID to output stream.
-
Field Details
-
ctx
-
-
Constructor Details
-
OptimizedMarshaller
Constructor.- Parameters:
ctx- Optimized marshaller context.
-
-
Method Details
-
readOptimized
Unmarshal object.- Parameters:
arr- An array with serialized object data.start- Object data offset.len- Data length.- Returns:
- Unmarshalled object.
-
writeUuid
Writes UUID to output stream. This method is meant to be used by implementations ofExternalizableinterface.- Parameters:
out- Output stream.uid- UUID to write.- Throws:
IOException- If write failed.
-
readUuid
Reads UUID from input stream. This method is meant to be used by implementations ofExternalizableinterface.- Parameters:
in- Input stream.- Returns:
- Read UUID.
- Throws:
IOException- If read failed.
-