getDataIndex

Retrieves an existing data index for a table and key column(s), or returns null if none exists. It never creates an index. To create one, use getOrCreateDataIndex.

This method is part of the io.deephaven.engine.table.impl.indexer.DataIndexer class and is typically used via a static import.

Syntax

Parameters

ParameterTypeDescription
tableTable

The table from which to retrieve the data index.

keyColumnNamesString...

The name(s) of the key column(s) defining the index (varargs).

keyColumnNamesCollection<String>

The name(s) of the key column(s) defining the index (collection).

Returns

The DataIndex, or null if no usable index exists.

Examples

Example 1: Retrieve an index, don't create if absent

Example 2: Create an index if absent