Package com.illumon.iris.treetable
Class TreeSnapshotQuery
java.lang.Object
com.illumon.iris.db.tables.remotequery.ContextAwareRemoteQuery<TreeSnapshotResult>
com.illumon.iris.treetable.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:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTreeSnapshotQuery(int baseId, @NotNull Map<Object, TableDetails> tablesByKey, long firstRow, long lastRow, @NotNull BitSet columns, @NotNull SelectFilter[] filters, @NotNull List<SortDirective> sorts, @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 -
Method Summary
Methods inherited from class com.illumon.iris.db.tables.remotequery.ContextAwareRemoteQuery
getClient, getLog, getRemoteQueryProcessor, getUserContext, initializeContext, initializeContext
-
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 viewportlastRow- The last row of the flat viewportcolumns- The columns to include in the viewportfilters- The filters to apply to new tables.sorts- The sorts to apply to new tablesincludedOps- The set of operations the client has performed since the last TSQ.
-
-
Method Details
-
call
- Specified by:
callin interfacecom.fishlib.base.Function.Unary<TreeSnapshotResult,Table>
-
execute
Description copied from interface:RemoteQueryExecute a query on a remote host.- Specified by:
executein interfaceRemoteQuery<TreeSnapshotResult>- Parameters:
database- database to use for execution.- Returns:
- result of the query.
-
toString
- Overrides:
toStringin classContextAwareRemoteQuery<TreeSnapshotResult>
-