Package org.gridgain.ml.compute
Class MlInputMarshaller<I extends MlJobParameters>
java.lang.Object
org.gridgain.ml.compute.MlInputMarshaller<I>
- All Implemented Interfaces:
Serializable,ByteArrayMarshaller<I>,Marshaller<I,byte[]>
public class MlInputMarshaller<I extends MlJobParameters>
extends Object
implements ByteArrayMarshaller<I>, Serializable
A standard Marshaller for all input types for ML.
TODO Replace Java serialization marshaller for cross-language ML API compatibility
https://ggsystems.atlassian.net/browse/GG-44540
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MlInputMarshaller
public MlInputMarshaller()
-
-
Method Details
-
marshal
Description copied from interface:MarshallerMarshal the object into raw type.- Specified by:
marshalin interfaceByteArrayMarshaller<I extends MlJobParameters>- Specified by:
marshalin interfaceMarshaller<I extends MlJobParameters,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<I extends MlJobParameters>- Specified by:
unmarshalin interfaceMarshaller<I extends MlJobParameters,byte[]> - Parameters:
data- raw presentation of object.- Returns:
- object.
- Throws:
UnmarshallingException
-