Package io.deephaven.integrations.python
Class PythonTableDataReader
java.lang.Object
io.deephaven.integrations.python.PythonTableDataReader
An efficient reader for a Python table listener to extract columnar data based on the
RowSequence
in the
TableUpdate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Context
makeContext
(int chunkCapacity, @NotNull ColumnSource<?>... columnSources) Factory method for instance ofPythonTableDataReader.Context
static Object[]
readChunkColumnMajor
(Context context, RowSequence rowSeq, ColumnSource<?>[] columnSources, boolean prev) Copy data from a table by chunks into a 2D array
-
Constructor Details
-
PythonTableDataReader
public PythonTableDataReader()
-
-
Method Details
-
makeContext
public static Context makeContext(int chunkCapacity, @NotNull @NotNull ColumnSource<?>... columnSources) Factory method for instance ofPythonTableDataReader.Context
- Parameters:
chunkCapacity
-columnSources
-- Returns:
PythonTableDataReader.Context
-
readChunkColumnMajor
public static Object[] readChunkColumnMajor(@NotNull Context context, RowSequence rowSeq, 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
-