Package io.deephaven.engine.table.impl
Class ForceReadUtility
java.lang.Object
io.deephaven.engine.table.impl.ForceReadUtility
Utility to force read
ColumnSource data from a Table. This is useful to check that all of the data
can be successfully read without requiring all of the data to be in-memory (table.select()), or forcing some
other table operation to read all of the data (table.where("(isNull(MyCol1) ^ isNull(MyCol2)) && false")).-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ForceReadUtility.Builderbuilder()Construct a new builder.The column names to read.intThe maximum number of columns to consider at any given time.static voidof(ForceReadUtility options) Force reads column data fromtable.static voidof(ForceReadUtility options, RowSet rowSet) Force readsrowSetcolumn data fromtable.static voidForce reads all column data fromtable.static voidForce reads all column data ofcolumnNamesfromtable;columnNamesmust have at least one element.intreadSize()The chunk read size.abstract Tabletable()The table.
-
Constructor Details
-
ForceReadUtility
public ForceReadUtility()
-
-
Method Details
-
builder
Construct a new builder.- Returns:
- the builder
-
of
Force reads all column data fromtable. Equivalent toof(builder().table(table).build()).- Parameters:
table- the table- See Also:
-
of
Force reads all column data ofcolumnNamesfromtable;columnNamesmust have at least one element. Equivalent toof(builder().table(table).addColumnNames(columnNames).build()).- Parameters:
table- the tablecolumnNames- the column names- See Also:
-
of
Force reads column data fromtable. Equivalent toof(options, options.table().getRowSet()).Callers must take an appropriate lock if necessary, see
UpdateGraph.checkInitiateSerialTableOperation().- Parameters:
options- the options
-
of
Force readsrowSetcolumn data fromtable.rowSetis expected to be thetable'srow set or subset.Callers must take an appropriate lock if necessary, see
UpdateGraph.checkInitiateSerialTableOperation().- Parameters:
options- the optionsrowSet- the row set
-
table
The table.- Returns:
- the table
-
columnNames
The column names to read. If empty, all oftable'scolumns will be used.- Returns:
- the column names
-
readSize
@Default public int readSize()The chunk read size. By default, is 2048.- Returns:
- the read size
-
maxColumns
@Default public int maxColumns()The maximum number of columns to consider at any given time. Setting this to1means that each column will be fully read before moving on to the next column; setting this toInteger.MAX_VALUEmeans that all columns will be read together (that is,rowSetinof(ForceReadUtility, RowSet)will be iterated through exactly once). By default, is 32.- Returns:
- the maximum number of columns to consider at any given time
-