Class ModelInputSerializer<T>

java.lang.Object
io.deephaven.modelfarm.ModelInputSerializer<T>
Type Parameters:
T - input data type
All Implemented Interfaces:
Model<T>, AutoCloseable

public class ModelInputSerializer<T> extends Object implements Model<T>, AutoCloseable
Serialize model inputs to a file.
  • Constructor Details

    • ModelInputSerializer

      public ModelInputSerializer(String filename)
      Creates a new serializer.
      Parameters:
      filename - output file name
  • Method Details

    • exec

      public void exec(T data)
      Description copied from interface: Model
      Execute the model on a new dataset.
      Specified by:
      exec in interface Model<T>
      Parameters:
      data - data snapshot to execute the model on.
    • close

      public void close() throws IOException
      Closes the output stream.
      Specified by:
      close in interface AutoCloseable
      Throws:
      IOException - problem closing the output stream