Class PivotTableView

All Implemented Interfaces:
LogOutputAppendable, LivenessManager, LivenessNode, LivenessReferent, Serializable

public final class PivotTableView extends LivenessArtifact
Server-side "view" object representing a client's snapshot target for HierarchicalTable data.

Instances associate two different kinds of information to fully describe the view:

Instances also store re-usable snapshot states across snapshot invocations.

See Also:
  • Method Details

    • getPivotTable

      public PivotTable getPivotTable()
    • getSnapshotState

      public PivotTable.SnapshotState getSnapshotState()
    • getRowKeyTable

      public Table getRowKeyTable()
    • getColumnKeyTable

      public Table getColumnKeyTable()
    • getOutputColumns

      public List<ColumnName> getOutputColumns()
    • getRowKeyTableActionColumn

      public ColumnName getRowKeyTableActionColumn()
    • getColumnKeyTableActionColumn

      public ColumnName getColumnKeyTableActionColumn()
    • makeFromPivotTable

      public static PivotTableView makeFromPivotTable(@NotNull @NotNull PivotTable pivotTable, @NotNull @NotNull Table rowKeyTable, @NotNull @NotNull Table columnKeyTable, @Nullable @Nullable ColumnName rowKeyTableActionColumn, @Nullable @Nullable ColumnName columnKeyTableActionColumn, @NotNull @NotNull List<ColumnName> outputColumns)
      Make a new PivotTableView that will snapshot pivotTable according to the expansions described by rowKeyTable and columnKeyTable.
      Parameters:
      pivotTable - The PivotTable to snapshot
      rowKeyTable - The Table to use for row expansion key data
      columnKeyTable - The Table to use for column expansion key data
      rowKeyTableActionColumn - The ColumnName of row expansion actions, if other than expand.
      columnKeyTableActionColumn - The ColumnName of column expansion actions, if other than expand.
      outputColumns -
      Returns:
      The new PivotTableView, which will have a new snapshot state
    • makeFromPivotTable

      public static PivotTableView makeFromPivotTable(@NotNull @NotNull PivotTable pivotTable)
      Make a new PivotTableView that will snapshot pivotTable with only the roots expanded.
      Parameters:
      pivotTable - The PivotTable to snapshot
      Returns:
      The new HierarchicalTableView, which will have a new snapshot state
    • makeFromExistingView

      public static PivotTableView makeFromExistingView(@NotNull @NotNull PivotTableView existingView, @NotNull @NotNull Table rowKeyTable, @NotNull @NotNull Table columnKeyTable, @Nullable @Nullable ColumnName rowKeyTableActionColumn, @Nullable @Nullable ColumnName columnKeyTableActionColumn, @NotNull @NotNull List<ColumnName> outputColumns)
      Make a new PivotTableView from an existing one, which will snapshot the existing view's PivotTable according to the expansions described by rowKeyTable and columnKeyTable.
      Parameters:
      existingView - The existing PivotTable
      rowKeyTable - The Table to use for row expansion key data
      columnKeyTable - The Table to use for column expansion key data
      rowKeyTableActionColumn - The ColumnName of row expansion actions, if other than expand.
      columnKeyTableActionColumn - The ColumnName of column expansion actions, if other than expand.
      Returns:
      The new PivotTableView, which will share snapshot state with existing
    • makeFromExistingView

      public static PivotTableView makeFromExistingView(@NotNull @NotNull PivotTableView existingView)
      Make a new PivotTableView from an existing one, which will snapshot the existing view's PivotTable with only the root expanded.
      Parameters:
      existingView - The existing PivotTable
      Returns:
      The new PivotTableView, which will share snapshot state with existing