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 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 the Table with the selected subset.
      Parameters:
      chart - chart
      tableTransform - tableTransform applied to the tables in partitionedTables. The purpose of this transform is to track the table definitions for tables inside partitionedTable
      cols - selected columns
      Returns:
      table view on selected subset
    • getSwappableTable

      default SwappableTable getSwappableTable(Comparable seriesName, ChartImpl chart, String... cols)
      Gets the view of the Table with the selected subset. The table transform is the identity function.
      Parameters:
      chart - chart
      cols - 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 derivative SelectableDataSet 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