Class CustomInputMarshaller<I extends org.gridgain.ml.model.MlJobParameters>

java.lang.Object
org.apache.ignite.example.ml.custom.CustomInputMarshaller<I>
All Implemented Interfaces:
Serializable, org.apache.ignite.marshalling.ByteArrayMarshaller<I>, org.apache.ignite.marshalling.Marshaller<I,byte[]>

public class CustomInputMarshaller<I extends org.gridgain.ml.model.MlJobParameters> extends Object implements org.apache.ignite.marshalling.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 Details

    • CustomInputMarshaller

      public CustomInputMarshaller()
  • Method Details

    • marshal

      public byte[] marshal(I obj) throws org.apache.ignite.marshalling.MarshallingException
      Specified by:
      marshal in interface org.apache.ignite.marshalling.ByteArrayMarshaller<I extends org.gridgain.ml.model.MlJobParameters>
      Specified by:
      marshal in interface org.apache.ignite.marshalling.Marshaller<I extends org.gridgain.ml.model.MlJobParameters,byte[]>
      Throws:
      org.apache.ignite.marshalling.MarshallingException
    • unmarshal

      public I unmarshal(byte[] data) throws org.apache.ignite.marshalling.UnmarshallingException
      Specified by:
      unmarshal in interface org.apache.ignite.marshalling.ByteArrayMarshaller<I extends org.gridgain.ml.model.MlJobParameters>
      Specified by:
      unmarshal in interface org.apache.ignite.marshalling.Marshaller<I extends org.gridgain.ml.model.MlJobParameters,byte[]>
      Throws:
      org.apache.ignite.marshalling.UnmarshallingException