Class CustomOutputMarshaller<O>

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

public class CustomOutputMarshaller<O> extends Object implements org.apache.ignite.marshalling.ByteArrayMarshaller<O>, Serializable
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
See Also:
  • Constructor Details

    • CustomOutputMarshaller

      public CustomOutputMarshaller()
  • Method Details

    • marshal

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

      public O unmarshal(byte[] data) throws org.apache.ignite.marshalling.UnmarshallingException
      Specified by:
      unmarshal in interface org.apache.ignite.marshalling.ByteArrayMarshaller<O>
      Specified by:
      unmarshal in interface org.apache.ignite.marshalling.Marshaller<O,byte[]>
      Throws:
      org.apache.ignite.marshalling.UnmarshallingException