Package io.deephaven.web.client.api
Interface TableData
- All Known Subinterfaces:
SubscriptionTableData
,TreeViewportData
,ViewportData
- All Known Implementing Classes:
AbstractTableSubscription.SubscriptionEventData
,AbstractTableSubscription.UpdateEventData
,AbstractTableSubscription.ViewportEventData
,JsTreeTable.TreeSubscription.TreeViewportDataImpl
@JsType(namespace="dh")
public interface TableData
Common interface for various ways of accessing table data and formatting for viewport or non-viewport subscriptions
on tables, data in trees, and snapshots.
Generally speaking, it is more efficient to access data in column-major order, rather than iterating through each Row
and accessing all columns that it holds. The getRows()
accessor can be useful to read row data, but may
incur other costs - it is likely faster to access data by columns using getData(RowPositionUnion, Column)
.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Represents a row available in a subscription/snapshot on the client.static interface
TS type union to allow either "int" or "LongWrapper" to be passed as an argument for various methods. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionget
(int index) get
(long index) default TableData.Row
get
(TableData.RowPositionUnion index) Reads a row object from the table, from which any subscribed column can be read.elemental2.core.JsArray<Column>
jsinterop.base.Any
jsinterop.base.Any
default jsinterop.base.Any
getData
(TableData.RowPositionUnion index, Column column) Reads a specific cell from the table, by row key and column.default Format
getFormat
(TableData.RowPositionUnion index, Column column) The server-specified Format to use for the cell at the given position.elemental2.core.JsArray<@TsTypeRef(Row.class) ? extends TableData.Row>
getRows()
A lazily computed array of all rows available on the client.
-
Field Details
-
NO_ROW_FORMAT_COLUMN
@JsIgnore static final int NO_ROW_FORMAT_COLUMN- See Also:
-
-
Method Details
-
getColumns
-
getRows
A lazily computed array of all rows available on the client. -
get
Reads a row object from the table, from which any subscribed column can be read.- Parameters:
index
- the position or key to access- Returns:
- the row at the given location
-
get
-
get
-
getData
Reads a specific cell from the table, by row key and column.- Parameters:
index
- the row in the table to get data fromcolumn
- the column to read- Returns:
- the value in the table
-
getData
-
getData
-
getFormat
The server-specified Format to use for the cell at the given position.- Parameters:
index
- the row to readcolumn
- the column to read- Returns:
- a Format instance with any server-specified details
-
getFormat
-
getFormat
-