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
ConstructorsConstructorDescriptionSelectableDataSetOneClick(io.deephaven.engine.table.PartitionedTable partitionedTable) Creates a SelectableDataSetOneClick instance.SelectableDataSetOneClick(io.deephaven.engine.table.PartitionedTable partitionedTable, boolean requireAllFiltersToDisplay) Creates a SelectableDataSetOneClick instance. -
Method Summary
Modifier and TypeMethodDescriptionString[]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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.plot.filters.SelectableDataSet
getLastBy, getSwappableTable
-
Constructor Details
-
SelectableDataSetOneClick
public SelectableDataSetOneClick(io.deephaven.engine.table.PartitionedTable partitionedTable) Creates a SelectableDataSetOneClick instance.Listens for OneClick events for the specified
byColumnsand calculates theSwappableTableby filtering thetable. TheSwappableTablewill be null until allbyColumnshave a corresponding OneClick filter.- Parameters:
partitionedTable- partitioned table- Throws:
io.deephaven.base.verify.RequirementFailure-partitionedTable,tableandbyColumnsmust not be null
-
SelectableDataSetOneClick
public SelectableDataSetOneClick(io.deephaven.engine.table.PartitionedTable partitionedTable, boolean requireAllFiltersToDisplay) Creates a SelectableDataSetOneClick instance.Listens for OneClick events for the specified
byColumnsand calculates theSwappableTableby filtering thetable. IfrequireAllFiltersToDisplayis true, theSwappableTablewill be null until allbyColumnshave a corresponding OneClick filter. IfrequireAllFiltersToDisplayis false, theSwappableTablewill be calculated by filtering thetablewith 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:
io.deephaven.base.verify.RequirementFailure-partitionedTable,tableandbyColumnsmust not be null
-
-
Method Details
-
getTableDefinition
public io.deephaven.engine.table.TableDefinition getTableDefinition()- Specified by:
getTableDefinitionin interfaceSelectableDataSet<String,Set<Object>> - Returns:
- underlying table definition.
-
getByColumns
-
getSwappableTable
public SwappableTable getSwappableTable(Comparable seriesName, ChartImpl chart, Function<io.deephaven.engine.table.Table, io.deephaven.engine.table.Table> tableTransform, String... cols) Description copied from interface:SelectableDataSetGets the view of theTablewith the selected subset.- Specified by:
getSwappableTablein 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<io.deephaven.engine.table.Table, io.deephaven.engine.table.Table> transformation) Description copied from interface:SelectableDataSetProduces a derivativeSelectableDataSetwith the specified transformation applied to all internal tables.- Specified by:
transformin 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
SelectableDataSetwith the transformation applied
-