Class RemappedDataIndex
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.AbstractDataIndex
io.deephaven.engine.table.impl.dataindex.RemappedDataIndex
- All Implemented Interfaces:
LogOutputAppendable,LivenessManager,LivenessNode,LivenessReferent,BasicDataIndex,DataIndex,DataIndexer.RetainableDataIndex,Serializable
A
AbstractDataIndex that remaps the key columns of another AbstractDataIndex. Used to implement
DataIndex.remapKeyColumns(Map).- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.engine.table.DataIndex
DataIndex.RowKeyLookup -
Field Summary
Fields inherited from class io.deephaven.engine.table.impl.dataindex.AbstractDataIndex
ROW_SET_COLUMN_NAME -
Method Summary
Modifier and TypeMethodDescriptionstatic DataIndexfrom(@NotNull AbstractDataIndex sourceIndex, @NotNull Map<ColumnSource<?>, ColumnSource<?>> oldToNewColumnMap) booleanWhether the indexBasicDataIndex.table()is refreshing.booleanisValid()Whether this AbstractDataIndex is potentially usable.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 DataIndex.RowKeyLookuprowKeyLookup(DataIndexOptions options) Build alookup functionof row keys for this index.boolean@NotNull Tabletable(DataIndexOptions options) Get theTablebacking this data index.booleanWhether theTablebacking this data index is already created and cached.Methods inherited from class io.deephaven.engine.table.impl.dataindex.AbstractDataIndex
indexTableWrapper, indexTableWrapper, remapKeyColumns, rowSetColumnName, transformMethods 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, rowSetColumnName, tableMethods inherited from interface io.deephaven.engine.table.DataIndex
remapKeyColumns, rowKeyLookup, rowKeyLookup, transformMethods 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 DataIndex from(@NotNull @NotNull AbstractDataIndex sourceIndex, @NotNull @NotNull Map<ColumnSource<?>, ColumnSource<?>> oldToNewColumnMap) -
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
-
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
-
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:
options- parameters to control the returned table- Returns:
- The
Table
-
rowKeyLookup
Description copied from interface:DataIndexBuild alookup functionof row keys for this index. IfBasicDataIndex.isRefreshing()istrue, this lookup function is only guaranteed to be accurate for the current cycle. Lookup keys should be in the order of the index's key columns.- Specified by:
rowKeyLookupin interfaceDataIndex- Parameters:
options- parameters for building the table, if required by this RowKeyLookup- Returns:
- A function that provides map-like lookup of index
BasicDataIndex.table()row keys from an index lookup key
-
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
-
isValid
public boolean isValid()Description copied from class:AbstractDataIndexWhether this AbstractDataIndex is potentially usable. This will returntruewhen there are no known issues for this data index. This performs fast checks, such as verifying all locations have index table files, but does not fully guarantee that the index is complete and loadable.- Specified by:
isValidin classAbstractDataIndex- Returns:
- true If the AbstractDataIndex is potentially usable, false otherwise
-
shouldRetain
public boolean shouldRetain()- Specified by:
shouldRetainin interfaceDataIndexer.RetainableDataIndex- Returns:
- Whether
thisshould be strongly held (ifadded) to maintain reachability
-