Class Output

java.lang.Object
io.deephaven.integrations.learn.Output

public class Output extends Object
Output specifies how to scatter data from a Python object into a table column.
  • Constructor Details

    • Output

      public Output(String colName, org.jpy.PyObject scatterFunc, String type)
      Creates a new Output.
      Parameters:
      colName - name of new column to store results.
      scatterFunc - function to scatter the results of a Python object into the table column.
      type - desired datatype of the new column.
    • Output

      public Output(String colName, Function<Object[],Object> scatterFunc, String type)
      Creates a new Output.
      Parameters:
      colName - name of new column to store results.
      scatterFunc - function to scatter the results of a Python object into the table column.
      type - desired datatype of the new column.
    • Output

      public Output(String colName, boolean isPythonScatterFunc, Function<Object[],Object> scatterFunc, String type)
      Creates a new Output.
      Parameters:
      colName - name of new column to store results.
      isPythonScatterFunc - true if the scatter function is a Python function; false otherwise.
      scatterFunc - function to scatter the results of a Python object into the table column.
      type - desired datatype of the new column.
  • Method Details

    • getColName

      public String getColName()
      Gets the output column name.
      Returns:
      the output column name.
    • isPythonScatterFunc

      public boolean isPythonScatterFunc()
      Is the scatter function a Python scatter function?
      Returns:
      true if the scatter function is a Python scatter function; false otherwise.
    • getScatterFunc

      public Function<Object[],Object> getScatterFunc()
      Gets the scatter function.
      Returns:
      the scatter function.
    • getType

      public String getType()
      Gets the type of the output column.
      Returns:
      the output column datatype.
    • toString

      public String toString()
      Overrides:
      toString in class Object