Package org.gridgain.ml.compute
Class MlOutputMarshaller<O>
java.lang.Object
org.gridgain.ml.compute.MlOutputMarshaller<O>
- All Implemented Interfaces:
ByteArrayMarshaller<O>,Marshaller<O,byte[]>
A standard Marshaller for all list based output types for ML.
TODO Replace Java serialization marshaller for cross-language ML API compatibility
https://ggsystems.atlassian.net/browse/GG-44540
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MlOutputMarshaller
public MlOutputMarshaller()
-
-
Method Details
-
marshal
Description copied from interface:MarshallerMarshal the object into raw type.- Specified by:
marshalin interfaceByteArrayMarshaller<O>- Specified by:
marshalin interfaceMarshaller<O,byte[]> - Parameters:
obj- object to marshal.- Returns:
- raw presentation of object.
- Throws:
MarshallingException
-
unmarshal
Description copied from interface:MarshallerUnmarshal the raw type into object.- Specified by:
unmarshalin interfaceByteArrayMarshaller<O>- Specified by:
unmarshalin interfaceMarshaller<O,byte[]> - Parameters:
data- raw presentation of object.- Returns:
- object.
- Throws:
UnmarshallingException
-