Package org.gridgain.ml.compute
Class MlOutputListMarshaller<O>
java.lang.Object
org.gridgain.ml.compute.MlOutputListMarshaller<O>
- All Implemented Interfaces:
ByteArrayMarshaller<List<O>>,Marshaller<List<O>,byte[]>
A standard Marshaller for all single 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
-
MlOutputListMarshaller
public MlOutputListMarshaller()
-
-
Method Details
-
marshal
Description copied from interface:MarshallerMarshal the object into raw type.- Specified by:
marshalin interfaceByteArrayMarshaller<O>- Specified by:
marshalin interfaceMarshaller<List<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<List<O>,byte[]> - Parameters:
data- raw presentation of object.- Returns:
- object.
- Throws:
UnmarshallingException
-