Class SparseSelect

java.lang.Object
io.deephaven.engine.table.impl.SparseSelect

@Deprecated(forRemoval=true) public class SparseSelect extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
TableOperations.select() and TableOperations.update(java.lang.String...) cover the same uses, and take part in the engine's row and column parallelism. Use table.select() in place of sparseSelect(Table), table.select(columns) in place of sparseSelect(Table, String...), and table.update(columns) in place of partialSparseSelect(Table, String...). Unlike sparseSelect, select may give its result new, flat row keys when the source is static or append-only and not flat; update always keeps the source's row keys, so call update with every column name to materialize every column without changing row keys. This class and its SparseSelect.threads and SparseSelect.chunkSize configuration properties will be removed in a future release.
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 Details

    • sparseSelect

      @Deprecated(forRemoval=true) public static Table sparseSelect(Table source)
      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(forRemoval=true) public static Table sparseSelect(Table source, 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 table
      columnNames - 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 table
      columnNames - 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 table
      columnNames - 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 table
      columnNames - the columns to materialize in the output
      Returns:
      a copy of the source table with materialized columns