Class TreeSnapshotQuery

All Implemented Interfaces:
com.fishlib.base.Function.Unary<TreeSnapshotResult,Table>, RemoteQuery<TreeSnapshotResult>, Serializable

public class TreeSnapshotQuery extends ContextAwareRemoteQuery<TreeSnapshotResult> implements com.fishlib.base.Function.Unary<TreeSnapshotResult,Table>
A query that fetches a flat viewport-ready snapshot of a tree table, taking into account the set of expanded rows at each level.
See Also:
  • Constructor Details

    • TreeSnapshotQuery

      public TreeSnapshotQuery(int baseId, @NotNull @NotNull Map<Object,TableDetails> tablesByKey, long firstRow, long lastRow, @NotNull @NotNull BitSet columns, @NotNull @NotNull SelectFilter[] filters, @NotNull @NotNull List<SortDirective> sorts, @NotNull @NotNull EnumSet<TreeSnapshotQuery.Operation> includedOps)
      Construct a new query that will create a flat snapshot of the tree table using a flat viewport beginning at the specified rows and columns, applying the specified sorts and filters if required to fetch tables
      Parameters:
      baseId - The id of the base table to be used as a key to manage this client's state.
      tablesByKey - The tables within the tree for which viewports are being tracked, separated by table key.
      firstRow - The first row of the flat viewport
      lastRow - The last row of the flat viewport
      columns - The columns to include in the viewport
      filters - The filters to apply to new tables.
      sorts - The sorts to apply to new tables
      includedOps - The set of operations the client has performed since the last TSQ.
  • Method Details