getOrCreateDataIndex

Retrieves an existing data index for a given table and specified key column(s), or creates the index if it does not already exist.

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 or create the data index.

keyColumnNamesString...

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

keyColumnNamesString[]

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

Returns

Returns the existing or newly created DataIndex object.

Examples