K - Object field type that is used as index key.T - Indexed object type. It is an instance of IStoreObject.public interface IStoreIndex<K,T extends IStoreObject>
| Modifier and Type | Method and Description |
|---|---|
Iterable<T> |
allValues(boolean ascending)
Retrieve all object from the index.
|
boolean |
containsKey(K key)
Determine whether the index contains the specified key.
|
<KEY extends Comparable<KEY>> |
get(KEY start,
KEY end,
boolean includeStart,
boolean includeEnd)
Gets the an
Iterable of the entries in the given range |
int |
getCardinality()
The number of entries in the
IStoreIndex. |
String |
getFieldCanonicalName()
Returns canonical name of the field that is indexed by this index
|
K |
getHighKey()
The highest key in the
IStoreIndex, provided that this index is against a Comparable field. |
int |
getKeyCardinality()
The number of keys in the
IStoreIndex. |
K |
getLowKey()
The lowest key in the
IStoreIndex, provided that this index is against a Comparable field. |
String |
getName()
Gets the name of the index.
|
boolean |
isUnique()
Checks if this index is unique index.
|
String getName()
null if index was not created with a name.int getKeyCardinality()
IStoreIndex.IStoreIndex.int getCardinality()
IStoreIndex. If this index is unique, this cardinality will be same as key cardinality.IStoreIndex.K getLowKey()
IStoreIndex, provided that this index is against a Comparable field. Null otherwise.IdxIndexK getHighKey()
IStoreIndex, provided that this index is against a Comparable field. Null otherwise.IdxIndexboolean containsKey(K key)
key - The key to look for.Iterable<T> allValues(boolean ascending)
ascending - Indicates whether the index is read in ascending key order or descending key order.Iterable of all of the entries indexed.<KEY extends Comparable<KEY>> Iterable<T> get(KEY start, KEY end, boolean includeStart, boolean includeEnd)
Iterable of the entries in the given rangestart - Start of range. If null, range is not bound from below.end - End of range. If null, range is not bound from above.includeStart - Set true to include start key into results. Has no effect if start is set to null.includeEnd - Set true to include end key into results. Has no effect if end is set to null.Iterable of the entries in the given rangeboolean isUnique()
true if this is unique index, else false.String getFieldCanonicalName()
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.