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
,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 DataIndex
from
(@NotNull AbstractDataIndex sourceIndex, @NotNull Map<ColumnSource<?>, ColumnSource<?>> oldToNewColumnMap) boolean
Whether the indexBasicDataIndex.table()
is refreshing
.boolean
isValid()
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 indexedColumnSources
to key column names for the indextable
.@NotNull DataIndex.RowKeyLookup
Build alookup function
of row keys for this index.@NotNull Table
table()
Get theTable
backing this data index.Methods inherited from class io.deephaven.engine.table.impl.dataindex.AbstractDataIndex
indexTableWrapper, indexTableWrapper, remapKeyColumns, rowSetColumnName, transform
Methods inherited from class io.deephaven.engine.liveness.LivenessArtifact
manageWithCurrentScope
Methods inherited from class io.deephaven.engine.liveness.ReferenceCountedLivenessNode
getWeakReference, initializeTransientFieldsForLiveness, onReferenceCountAtZero, tryManage, tryUnmanage, tryUnmanage
Methods inherited from class io.deephaven.engine.liveness.ReferenceCountedLivenessReferent
destroy, dropReference, tryRetainReference
Methods inherited from class io.deephaven.util.referencecounting.ReferenceCounted
append, decrementReferenceCount, forceReferenceCountToZero, getReferenceCountDebug, incrementReferenceCount, resetReferenceCount, toString, tryDecrementReferenceCount, tryIncrementReferenceCount
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.deephaven.engine.table.BasicDataIndex
keyColumns, keyColumns, rowSetColumn
Methods inherited from interface io.deephaven.engine.table.DataIndex
rowKeyLookup
Methods inherited from interface io.deephaven.engine.liveness.LivenessManager
manage
Methods inherited from interface io.deephaven.engine.liveness.LivenessNode
unmanage, unmanage
Methods 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:BasicDataIndex
Get a map from indexedColumnSources
to key column names for the indextable
. This map must be ordered in the same order presented byBasicDataIndex.keyColumnNames()
and used for lookup keys.- Returns:
- A map designating the key column names for each indexed
ColumnSource
-
keyColumnNames
Description copied from interface:BasicDataIndex
Get a list of the key column names for the indextable
.- Returns:
- The key column names
-
table
Description copied from interface:BasicDataIndex
Get theTable
backing this data index.- Returns:
- The
Table
-
rowKeyLookup
Description copied from interface:DataIndex
Build alookup function
of 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.- 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:BasicDataIndex
Whether the indexBasicDataIndex.table()
is refreshing
. Some transformations will force the index to become static even when the source table is refreshing.- Returns:
true
if the indexBasicDataIndex.table()
is refreshing
,false
otherwise
-
isValid
public boolean isValid()Description copied from class:AbstractDataIndex
Whether this AbstractDataIndex is potentially usable. This will returntrue
when 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:
isValid
in classAbstractDataIndex
- Returns:
- true If the AbstractDataIndex is potentially usable, false otherwise
-