Package io.deephaven.integrations.python
Class PythonListenerTableUpdateDataReader
java.lang.Object
io.deephaven.integrations.python.PythonListenerTableUpdateDataReader
An efficient reader for a Python table listener to extract columnar data based on the
RowSequence in the
TableUpdate-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.deephaven.engine.table.ContextmakeContext(int chunkCapacity, @NotNull io.deephaven.engine.table.ColumnSource<?>... columnSources) Factory method for instance ofPythonListenerTableUpdateDataReader.Contextstatic 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
-
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 ofPythonListenerTableUpdateDataReader.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 arrayrowSeq- indices of the rows of the table to put into the 2D arraycolumnSources- columns of data to put into the 2D array- Returns:
- a 2D array
-