Package io.deephaven.web.client.api
Interface JsResolvedTable
- All Superinterfaces:
JsITable,JsTableOperations,ServerObject
@TsName(namespace="dh",
name="ResolvedTable")
@TsInterface
public interface JsResolvedTable
extends JsITable, JsTableOperations
The table an awaited
JsPendingTable resolves to: a retained table whose data can be read, plus the chainable
JsTableOperations, each of which again yields a JsPendingTable. Each instance points at a single
server-side table, unlike a JsTable which can have its filters, sorts, and custom columns changed and
releases every server-side table it made when closed.
Each instance has one owner which closes it when done so the server can free its resources. For multiple owners with
independent lifetimes, copy() produces a distinct ResolvedTable instance referencing the same
server-side table.
To instead use a JsTable, invoke createMutableTable(), which will return a new JsTable based
on this table, which can then have its filters, sorts, and custom columns changed without affecting this table.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.web.client.api.JsTableOperations
JsTableOperations.DownsampleTableOptions, JsTableOperations.NaturalJoinType, JsTableOperations.RangeEndRule, JsTableOperations.RangeJoinMatch, JsTableOperations.RangeStartRule, JsTableOperations.SnapshotWhenOptions, JsTableOperations.UngroupOptionsNested classes/interfaces inherited from interface io.deephaven.web.client.api.ServerObject
ServerObject.Union -
Method Summary
Modifier and TypeMethodDescriptioncopy()A new instance over the same server-side table with its own lifetime, available immediately.A newJsTableover the same server-side table, the inverse ofJsTable.operations().default elemental2.promise.Promise<JsTreeTable> createRollup(@TsTypeRef(JsRollupConfig.class) Object configObject) A promise of a new roll-updh.TreeTableof this table.default elemental2.promise.Promise<JsTreeTable> createTreeTable(@TsTypeRef(JsTreeTableConfig.class) Object configObject) A promise of a newdh.TreeTableof this table.elemental2.promise.Promise<Double> seekRow(SeekRowOptions options) Finds the next row, afterstartingRowand wrapping around, whose value incolumnmatchesseekValue.Methods inherited from interface io.deephaven.web.client.api.JsITable
close, createSnapshot, createSubscription, createViewportSubscription, findColumn, getAttribute, getAttributes, getColumns, getColumnStatistics, getSizeMethods inherited from interface io.deephaven.web.client.api.JsTableOperations
absSumBy, aggAllBy, aggBy, aj, avgBy, call, call, countBy, downsample, dropColumns, exactJoin, firstBy, flatten, groupBy, head, join, lastBy, lazyUpdate, maxBy, medianBy, minBy, naturalJoin, raj, rangeJoin, rejected, reverse, select, selectDistinct, slice, snapshot, snapshotWhen, sort, stdBy, sumBy, tail, ungroup, update, updateBy, updateView, varBy, view, wavgBy, where, whereIn, whereNotIn, wsumByMethods inherited from interface io.deephaven.web.client.api.ServerObject
getConnection, typedTicket
-
Method Details
-
copy
A new instance over the same server-side table with its own lifetime, available immediately. The caller owns it, and either instance can be closed without affecting the other.- Returns:
- a new instance of this table, sharing resources on the server
- Throws:
IllegalStateException- if this table is closed
-
createMutableTable
A newJsTableover the same server-side table, the inverse ofJsTable.operations(). TheJsTablecan be changed withapplyFilter,applySortand its other mutating methods without affecting this table, and the two are closed independently. Like other tables made by operations, it is not revived if a reconnect needs a new session.- Returns:
- a new mutable table, which the caller must close
-
seekRow
Finds the next row, afterstartingRowand wrapping around, whose value incolumnmatchesseekValue.- Parameters:
options- the value to find, and where and how to search for it- Returns:
- a promise of the position of the matching row, or -1 if no row matches
-
createTreeTable
@JsMethod default elemental2.promise.Promise<JsTreeTable> createTreeTable(@TsTypeRef(JsTreeTableConfig.class) @TsTypeRef(JsTreeTableConfig.class) Object configObject) A promise of a newdh.TreeTableof this table. Each call to this method produces a newdh.TreeTable, which must haveclose()called on it when not in use.- Parameters:
configObject- specifies which column to use as the row ID, and which for parent ID, and how to handle rows with no parent- Returns:
- a promise of
dh.TreeTable
-
createRollup
@JsMethod default elemental2.promise.Promise<JsTreeTable> createRollup(@TsTypeRef(JsRollupConfig.class) @TsTypeRef(JsRollupConfig.class) Object configObject) A promise of a new roll-updh.TreeTableof this table. Each call to this method produces a newdh.TreeTable, which must haveclose()called on it when not in use.- Parameters:
configObject- specifies which columns to aggregate and which to group by, and other rollup behavior- Returns:
- a promise of
dh.TreeTable
-