Package io.deephaven.engine.table.impl
Class SparseSelect
java.lang.Object
io.deephaven.engine.table.impl.SparseSelect
Deprecated, for removal: This API element is subject to removal in a future version.
A simpler version of
TableOperations.select() that is guaranteed to preserve the original table's RowSet.
Like select, the sparseSelected table's columns will be materialized in memory. Unlike select(), sparseSelect guarantees the original Table's RowSet is preserved. Formula columns are not supported, only the names of columns to copy into the output table. This means that each output column is independent of every other output column, which enables column-level parallelism.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TablepartialSparseSelect(Table source, String... columnNames) Deprecated, for removal: This API element is subject to removal in a future version.static TablepartialSparseSelect(Table source, Collection<String> columnNames) Deprecated, for removal: This API element is subject to removal in a future version.static TablesparseSelect(Table source) Deprecated, for removal: This API element is subject to removal in a future version.static TablesparseSelect(Table source, String... columnNames) Deprecated, for removal: This API element is subject to removal in a future version.static TablesparseSelect(Table source, Collection<String> columnNames) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
sparseSelect
Deprecated, for removal: This API element is subject to removal in a future version.Create a new table with all columns materialized.- Parameters:
source- the input table- Returns:
- a copy of the source table with materialized column
-
sparseSelect
Deprecated, for removal: This API element is subject to removal in a future version.Create a new table with the specified columns materialized and others dropped.- Parameters:
source- the input tablecolumnNames- the columns to copy to the output- Returns:
- a copy of the source table with materialized column
-
sparseSelect
@Deprecated(forRemoval=true) public static Table sparseSelect(Table source, Collection<String> columnNames) Deprecated, for removal: This API element is subject to removal in a future version.Create a new table with the specified columns materialized and others dropped.- Parameters:
source- the input tablecolumnNames- the columns to copy to the output- Returns:
- a copy of the source table with materialized column
-
partialSparseSelect
@Deprecated(forRemoval=true) public static Table partialSparseSelect(Table source, Collection<String> columnNames) Deprecated, for removal: This API element is subject to removal in a future version.Create a copy of the source table with the specified columns materialized. Other columns are passed through to the output without changes.- Parameters:
source- the input tablecolumnNames- the columns to materialize in the output- Returns:
- a copy of the source table with materialized columns
-
partialSparseSelect
@Deprecated(forRemoval=true) public static Table partialSparseSelect(Table source, String... columnNames) Deprecated, for removal: This API element is subject to removal in a future version.Create a copy of the source table with the specified columns materialized. Other columns are passed through to the output without changes.- Parameters:
source- the input tablecolumnNames- the columns to materialize in the output- Returns:
- a copy of the source table with materialized columns
-
TableOperations.select()andTableOperations.update(java.lang.String...)cover the same uses, and take part in the engine's row and column parallelism. Usetable.select()in place ofsparseSelect(Table),table.select(columns)in place ofsparseSelect(Table, String...), andtable.update(columns)in place ofpartialSparseSelect(Table, String...). UnlikesparseSelect,selectmay give its result new, flat row keys when the source is static or append-only and not flat;updatealways keeps the source's row keys, so callupdatewith every column name to materialize every column without changing row keys. This class and itsSparseSelect.threadsandSparseSelect.chunkSizeconfiguration properties will be removed in a future release.