public static interface IndexedTable.Index
| Modifier and Type | Field and Description |
|---|---|
static int |
NOT_FOUND |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areKeysUnique()
Returns whether keys are unique in this index.
|
it.unimi.dsi.fastutil.ints.IntList |
find(Object key)
Returns the list of row numbers corresponding to "key" in this index.
|
int |
findUniqueLong(long key)
Returns the row number corresponding to "key" in this index, or
NOT_FOUND if the key does not exist
in the index. |
ColumnType |
keyType()
Returns the natural key type for the index.
|
static final int NOT_FOUND
ColumnType keyType()
boolean areKeysUnique()
find(Object) will only ever
return a zero- or one-element list.it.unimi.dsi.fastutil.ints.IntList find(Object key)
keyType(), it will be converted before checking
the index.int findUniqueLong(long key)
NOT_FOUND if the key does not exist
in the index.
It is only valid to call this method if keyType() is ValueType.LONG and areKeysUnique()
returns true.UnsupportedOperationException - if preconditions are not metCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.