Class StandaloneDataIndex
java.lang.Object
io.deephaven.util.referencecounting.ReferenceCounted
io.deephaven.engine.liveness.ReferenceCountedLivenessReferent
io.deephaven.engine.liveness.ReferenceCountedLivenessNode
io.deephaven.engine.liveness.LivenessArtifact
io.deephaven.engine.table.impl.dataindex.StandaloneDataIndex
- All Implemented Interfaces:
LogOutputAppendable,LivenessManager,LivenessNode,LivenessReferent,BasicDataIndex,Serializable
BasicDataIndex implementation that holds an index Table and does not specify the ColumnSources that were indexed, and hence cannot support keyColumnNamesByIndexedColumn(). This is useful
for standalone indices that are not associated with a specific table, but rather used to accumulate a merged index
for a merged table over the indexed data.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic StandaloneDataIndexbooleanWhether the indexBasicDataIndex.table()is refreshing.Get a list of the key column names for the indextable.@NotNull Map<ColumnSource<?>,String> Get a map from indexedColumnSourcesto key column names for the indextable.@NotNull String@NotNull Tabletable(DataIndexOptions unused) Get theTablebacking this data index.booleanWhether theTablebacking this data index is already created and cached.Methods inherited from class io.deephaven.engine.liveness.LivenessArtifact
manageWithCurrentScopeMethods inherited from class io.deephaven.engine.liveness.ReferenceCountedLivenessNode
getWeakReference, initializeTransientFieldsForLiveness, onReferenceCountAtZero, tryManage, tryUnmanage, tryUnmanageMethods inherited from class io.deephaven.engine.liveness.ReferenceCountedLivenessReferent
destroy, dropReference, tryRetainReferenceMethods inherited from class io.deephaven.util.referencecounting.ReferenceCounted
append, decrementReferenceCount, forceReferenceCountToZero, getReferenceCountDebug, incrementReferenceCount, resetReferenceCount, toString, tryDecrementReferenceCount, tryIncrementReferenceCountMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.deephaven.engine.table.BasicDataIndex
keyColumns, keyColumns, rowSetColumn, rowSetColumn, tableMethods inherited from interface io.deephaven.engine.liveness.LivenessManager
manage, unmanage, unmanageMethods inherited from interface io.deephaven.engine.liveness.LivenessReferent
dropReference, getReferentDescription, getWeakReference, retainReference, tryRetainReference
-
Method Details
-
from
public static StandaloneDataIndex from(@NotNull @NotNull Table table, @NotNull @NotNull String[] keyColumnNames, @NotNull @NotNull String rowSetColumnName) -
keyColumnNames
Description copied from interface:BasicDataIndexGet a list of the key column names for the indextable.- Specified by:
keyColumnNamesin interfaceBasicDataIndex- Returns:
- The key column names
-
keyColumnNamesByIndexedColumn
Description copied from interface:BasicDataIndexGet a map from indexedColumnSourcesto key column names for the indextable. This map must be ordered in the same order presented byBasicDataIndex.keyColumnNames()and used for lookup keys.- Specified by:
keyColumnNamesByIndexedColumnin interfaceBasicDataIndex- Returns:
- A map designating the key column names for each indexed
ColumnSource
-
rowSetColumnName
Description copied from interface:BasicDataIndex- Specified by:
rowSetColumnNamein interfaceBasicDataIndex- Returns:
- The
RowSetcolumn name
-
tableIsCached
public boolean tableIsCached()Description copied from interface:BasicDataIndexWhether theTablebacking this data index is already created and cached.- Specified by:
tableIsCachedin interfaceBasicDataIndex- Returns:
truewhen the table is cached,falseotherwise
-
table
Description copied from interface:BasicDataIndexGet theTablebacking this data index.- Specified by:
tablein interfaceBasicDataIndex- Parameters:
unused- parameters to control the returned table- Returns:
- The
Table
-
isRefreshing
public boolean isRefreshing()Description copied from interface:BasicDataIndexWhether the indexBasicDataIndex.table()is refreshing. Some transformations will force the index to become static even when the source table is refreshing.- Specified by:
isRefreshingin interfaceBasicDataIndex- Returns:
trueif the indexBasicDataIndex.table()is refreshing,falseotherwise
-