Package io.deephaven.plot.filters
Interface SelectableDataSet<KEY_TYPE,VALUE_TYPE>
- All Known Implementing Classes:
SelectableDataSetOneClick,SelectableDataSetSwappableTable
public interface SelectableDataSet<KEY_TYPE,VALUE_TYPE>
A
Table with a view on a selectable subset.-
Method Summary
Modifier and TypeMethodDescriptiondefault SelectableDataSet<KEY_TYPE,VALUE_TYPE> getLastBy(Collection<String> groupByColumns) Deprecated.default SwappableTablegetSwappableTable(Comparable seriesName, ChartImpl chart, String... cols) Gets the view of theTablewith the selected subset.getSwappableTable(Comparable seriesName, ChartImpl chart, Function<io.deephaven.engine.table.Table, io.deephaven.engine.table.Table> tableTransform, String... cols) Gets the view of theTablewith the selected subset.io.deephaven.engine.table.TableDefinitiontransform(@NotNull Object memoKey, @NotNull Function<io.deephaven.engine.table.Table, io.deephaven.engine.table.Table> transformation) Produces a derivativeSelectableDataSetwith the specified transformation applied to all internal tables.
-
Method Details
-
getTableDefinition
io.deephaven.engine.table.TableDefinition getTableDefinition()- Returns:
- underlying table definition.
-
getSwappableTable
SwappableTable getSwappableTable(Comparable seriesName, ChartImpl chart, Function<io.deephaven.engine.table.Table, io.deephaven.engine.table.Table> tableTransform, String... cols) Gets the view of theTablewith the selected subset.- Parameters:
chart- charttableTransform- tableTransform applied to the tables in partitionedTables. The purpose of this transform is to track the table definitions for tables inside partitionedTablecols- selected columns- Returns:
- table view on selected subset
-
getSwappableTable
Gets the view of theTablewith the selected subset. The table transform is the identity function.- Parameters:
chart- chartcols- selected columns- Returns:
- table view on selected subset
-
getLastBy
@Deprecated default SelectableDataSet<KEY_TYPE,VALUE_TYPE> getLastBy(Collection<String> groupByColumns) Deprecated.This method will be removed in a future release, usetransform(Object, Function)instead.Gets a version of the SelectableDataSet with a lastBy applied to the tables.- Parameters:
groupByColumns- The grouping columns for the lastBy- Returns:
- a new SelectableDataSet with lastBy applied
-
transform
SelectableDataSet<KEY_TYPE,VALUE_TYPE> transform(@NotNull @NotNull Object memoKey, @NotNull @NotNull Function<io.deephaven.engine.table.Table, io.deephaven.engine.table.Table> transformation) Produces a derivativeSelectableDataSetwith the specified transformation applied to all internal tables.- Parameters:
memoKey- An Object that uniquely identifies the actions taken by the transformation so it can be cached.- Returns:
- a new
SelectableDataSetwith the transformation applied
-
transform(Object, Function)instead.