Package io.deephaven.plot.filters
Class SelectableDataSetOneClick
java.lang.Object
io.deephaven.plot.filters.SelectableDataSetOneClick
- All Implemented Interfaces:
SelectableDataSet<String,
Set<Object>>
public class SelectableDataSetOneClick
extends Object
implements SelectableDataSet<String,Set<Object>>
A OneClick filtered table.
If requireAllFiltersToDisplay is true, data is only displayed once the user has OneClick filtered all byColumns. If
requireAllFiltersToDisplay is false, data is displayed when not all oneclicks are selected
-
Constructor Summary
ConstructorDescriptionSelectableDataSetOneClick
(PartitionedTable partitionedTable) Creates a SelectableDataSetOneClick instance.SelectableDataSetOneClick
(PartitionedTable partitionedTable, boolean requireAllFiltersToDisplay) Creates a SelectableDataSetOneClick instance. -
Method Summary
Modifier and TypeMethodDescriptionString[]
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.plot.filters.SelectableDataSet
getSwappableTable
-
Constructor Details
-
SelectableDataSetOneClick
Creates a SelectableDataSetOneClick instance.Listens for OneClick events for the specified
byColumns
and calculates theSwappableTable
by filtering thetable
. TheSwappableTable
will be null until allbyColumns
have a corresponding OneClick filter.- Parameters:
partitionedTable
- partitioned table- Throws:
RequirementFailure
-partitionedTable
,table
andbyColumns
must not be null
-
SelectableDataSetOneClick
public SelectableDataSetOneClick(PartitionedTable partitionedTable, boolean requireAllFiltersToDisplay) Creates a SelectableDataSetOneClick instance.Listens for OneClick events for the specified
byColumns
and calculates theSwappableTable
by filtering thetable
. IfrequireAllFiltersToDisplay
is true, theSwappableTable
will be null until allbyColumns
have a corresponding OneClick filter. IfrequireAllFiltersToDisplay
is false, theSwappableTable
will be calculated by filtering thetable
with the OneClicks used.- Parameters:
partitionedTable
- PartitionedTablerequireAllFiltersToDisplay
- false to display data when not all oneclicks are selected; true to only display data when appropriate oneclicks are selected- Throws:
RequirementFailure
-partitionedTable
,table
andbyColumns
must not be null
-
-
Method Details
-
getTableDefinition
- Specified by:
getTableDefinition
in interfaceSelectableDataSet<String,
Set<Object>> - Returns:
- underlying table definition.
-
getByColumns
-
getSwappableTable
public SwappableTable getSwappableTable(Comparable seriesName, ChartImpl chart, Function<Table, Table> tableTransform, String... cols) Description copied from interface:SelectableDataSet
Gets the view of theTable
with the selected subset.- Specified by:
getSwappableTable
in interfaceSelectableDataSet<String,
Set<Object>> 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
-
transform
public SelectableDataSet<String,Set<Object>> transform(@NotNull @NotNull Object memoKey, @NotNull @NotNull Function<Table, Table> transformation) Description copied from interface:SelectableDataSet
Produces a derivativeSelectableDataSet
with the specified transformation applied to all internal tables.- Specified by:
transform
in interfaceSelectableDataSet<String,
Set<Object>> - 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
-