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 SwappableTable
getSwappableTable
(Comparable seriesName, ChartImpl chart, String... cols) Gets the view of theTable
with the selected subset.getSwappableTable
(Comparable seriesName, ChartImpl chart, Function<Table, Table> tableTransform, String... cols) Gets the view of theTable
with the selected subset.Produces a derivativeSelectableDataSet
with the specified transformation applied to all internal tables.
-
Method Details
-
getTableDefinition
TableDefinition getTableDefinition()- Returns:
- underlying table definition.
-
getSwappableTable
SwappableTable getSwappableTable(Comparable seriesName, ChartImpl chart, Function<Table, Table> tableTransform, String... cols) Gets the view of theTable
with 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 theTable
with the selected subset. The table transform is the identity function.- Parameters:
chart
- chartcols
- selected columns- Returns:
- table view on selected subset
-
transform
SelectableDataSet<KEY_TYPE,VALUE_TYPE> transform(@NotNull @NotNull Object memoKey, @NotNull @NotNull Function<Table, Table> transformation) Produces a derivativeSelectableDataSet
with 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
SelectableDataSet
with the transformation applied
-