Class CustomOutputListMarshaller<O>

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

public class CustomOutputListMarshaller<O> extends Object implements org.apache.ignite.marshalling.ByteArrayMarshaller<List<O>>, Serializable
Handles serialization and deserialization of lists of custom ML outputs.
See Also:
  • Constructor Details

    • CustomOutputListMarshaller

      public CustomOutputListMarshaller()
  • Method Details

    • marshal

      public byte[] marshal(List<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<List<O>,byte[]>
      Throws:
      org.apache.ignite.marshalling.MarshallingException
    • unmarshal

      public List<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<List<O>,byte[]>
      Throws:
      org.apache.ignite.marshalling.UnmarshallingException