Class PythonListenerTableUpdateDataReader

java.lang.Object
io.deephaven.integrations.python.PythonListenerTableUpdateDataReader

public class PythonListenerTableUpdateDataReader extends Object
An efficient reader for a Python table listener to extract columnar data based on the RowSequence in the TableUpdate
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.deephaven.engine.table.Context
    makeContext(int chunkCapacity, @NotNull io.deephaven.engine.table.ColumnSource<?>... columnSources)
    Factory method for instance of PythonListenerTableUpdateDataReader.Context
    static Object[]
    readChunkColumnMajor(io.deephaven.engine.table.Context context, io.deephaven.engine.rowset.RowSequence rowSeq, io.deephaven.engine.table.ColumnSource<?>[] columnSources, boolean prev)
    Copy data from a table by chunks into a 2D array

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PythonListenerTableUpdateDataReader

      public PythonListenerTableUpdateDataReader()
  • Method Details

    • makeContext

      public static io.deephaven.engine.table.Context makeContext(int chunkCapacity, @NotNull @NotNull io.deephaven.engine.table.ColumnSource<?>... columnSources)
      Factory method for instance of PythonListenerTableUpdateDataReader.Context
      Parameters:
      chunkCapacity -
      columnSources -
      Returns:
      PythonListenerTableUpdateDataReader.Context
    • readChunkColumnMajor

      public static Object[] readChunkColumnMajor(@NotNull io.deephaven.engine.table.Context context, io.deephaven.engine.rowset.RowSequence rowSeq, io.deephaven.engine.table.ColumnSource<?>[] columnSources, boolean prev)
      Copy data from a table by chunks into a 2D array
      Parameters:
      context - the context used in filling the output array
      rowSeq - indices of the rows of the table to put into the 2D array
      columnSources - columns of data to put into the 2D array
      Returns:
      a 2D array