Class DataIndexUtils
java.lang.Object
io.deephaven.engine.table.impl.dataindex.DataIndexUtils
Tools for working with
data indices
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AKeyedObjectKey
that for values keyed by a lookup key. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ToLongFunction<Object>
buildRowKeyMappingFunction
(Table indexTable, String[] keyColumnNames) Build a mapping function from the lookup keys of the provided indexTable
to row keys in the table.static int
hashLookupKey
(@Nullable Object key) Compute the hash code for a data indexlookup
key.static boolean
lookupKeysEqual
(@Nullable Object key1, @Nullable Object key2) Test equality between two data indexlookup
keys.static ChunkSource.WithPrev<Values>
makeBoxedKeySource
(@NotNull ColumnSource<?>... keySources) static DataIndexKeySet
makeKeySet
(int keyColumnCount) static DataIndexKeySet
makeKeySet
(int keyColumnCount, int initialCapacity)
-
Constructor Details
-
DataIndexUtils
public DataIndexUtils()
-
-
Method Details
-
makeBoxedKeySource
public static ChunkSource.WithPrev<Values> makeBoxedKeySource(@NotNull @NotNull ColumnSource<?>... keySources) - Parameters:
keySources
- The individual key sources- Returns:
- The boxed key source
-
makeKeySet
- Parameters:
keyColumnCount
- The number of key components- Returns:
- The key set
-
makeKeySet
- Parameters:
keyColumnCount
- The number of key componentsinitialCapacity
- The initial capacity- Returns:
- The key set
-
lookupKeysEqual
public static boolean lookupKeysEqual(@Nullable @Nullable Object key1, @Nullable @Nullable Object key2) Test equality between two data indexlookup
keys.- Returns:
- Whether the two keys are equal
-
hashLookupKey
Compute the hash code for a data indexlookup
key.- Parameters:
key
- The lookup key- Returns:
- The hash code
-
buildRowKeyMappingFunction
public static ToLongFunction<Object> buildRowKeyMappingFunction(Table indexTable, String[] keyColumnNames) Build a mapping function from the lookup keys of the provided indexTable
to row keys in the table.- Parameters:
indexTable
- TheTable
to searchkeyColumnNames
- The key columns to search- Returns:
- A mapping function from lookup keys to
indexTable
row keys
-