Package io.deephaven.engine.table
Interface BasicDataIndex
- All Superinterfaces:
LivenessReferent
- All Known Subinterfaces:
DataIndex
- All Known Implementing Classes:
AbstractDataIndex
,RemappedDataIndex
,StandaloneDataIndex
,TableBackedDataIndex
,TransformedDataIndex
Implementations of BasicDataIndex provide a data index for a
Table
. The index is itself a Table
with
columns corresponding to the indexed column(s) ("key" columns) and a column of RowSets
that contain
the row keys for each unique combination of key values (that is, the "group" or "bucket"). The index itself is a
Table containing the key column(s) and the RowSets associated with each unique combination of values. Implementations
may be loaded from persistent storage or created at runtime, e.g. via aggregations.-
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether the indextable()
is refreshing
.Get a list of the key column names for the indextable
.@NotNull Map<ColumnSource<?>,
String> Get a map from indexedColumnSources
to key column names for the indextable
.default @NotNull ColumnSource<?>[]
Get the keyColumnSources
of the indextable
.default @NotNull ColumnSource<?>[]
keyColumns
(@NotNull ColumnSource<?>[] indexedColumnSources) default @NotNull ColumnSource<RowSet>
@NotNull String
@NotNull Table
table()
Get theTable
backing this data index.Methods inherited from interface io.deephaven.engine.liveness.LivenessReferent
dropReference, getReferentDescription, getWeakReference, retainReference, tryRetainReference
-
Method Details
-
keyColumnNamesByIndexedColumn
Get a map from indexedColumnSources
to key column names for the indextable
. This map must be ordered in the same order presented bykeyColumnNames()
and used for lookup keys.- Returns:
- A map designating the key column names for each indexed
ColumnSource
-
keyColumnNames
Get a list of the key column names for the indextable
.- Returns:
- The key column names
-
rowSetColumnName
- Returns:
- The
RowSet
column name
-
keyColumns
Get the keyColumnSources
of the indextable
.- Returns:
- An array of the key
ColumnSources
, to be owned by the caller
-
keyColumns
@FinalDefault @NotNull default @NotNull ColumnSource<?>[] keyColumns(@NotNull @NotNull ColumnSource<?>[] indexedColumnSources) - Parameters:
indexedColumnSources
- The indexedColumnSources
in the desired order; must match the keys ofkeyColumnNamesByIndexedColumn()
- Returns:
- An array of the key
ColumnSources
in the specified order, to be owned by the caller
-
rowSetColumn
- Returns:
- The
RowSet
ColumnSource
-
table
Get theTable
backing this data index.- Returns:
- The
Table
-
isRefreshing
boolean isRefreshing()Whether the indextable()
is refreshing
. Some transformations will force the index to become static even when the source table is refreshing.- Returns:
true
if the indextable()
is refreshing
,false
otherwise
-