K - object key typeI - index key type. The type of the indexed columnV - object typepublic abstract class IDXIndex<K,I,V> extends Index<K,I,V>
Index instead.| Modifier and Type | Field and Description |
|---|---|
protected IDXAbstractDatabase |
db |
protected IDBIndex |
idbIndex |
| Modifier | Constructor and Description |
|---|---|
protected |
IDXIndex(IDXAbstractDatabase db,
IDBIndex idbIndex) |
| Modifier and Type | Method and Description |
|---|---|
void |
count(DatabaseCountCallback callback)
Return the number of items referenced by the index.
|
void |
count(KeyRange<I> range,
DatabaseCountCallback callback)
Return the number of items referenced by the index in the given range.
|
abstract void |
get(I key,
DatabaseRetrieveCallback<V> callback)
Retrieve the object associated with the given key from the index.
|
abstract void |
get(KeyRange<I> keyRange,
DatabaseRetrieveCallback<V> callback)
Retrieve the object in the given keyRange from the index.
|
abstract void |
getKey(I key,
DatabaseRetrieveCallback<K> callback)
Retrieve the object key associated with the given key from the index.
|
abstract void |
getKey(KeyRange<I> keyRange,
DatabaseRetrieveCallback<K> callback)
Retrieve the object key in the given keyRange from the index.
|
abstract KeyRangeFactory<I> |
getKeyRangeFactory()
Retrieve a factory to create KeyRange objects used by this index.
|
String |
getName()
Retrieve the index name
|
boolean |
isMultiEntry()
This flag affects how the index behaves when the result of evaluating the index's key path yields an Array.
|
boolean |
isUnique()
Retrieve true if each key inside the index must be unique.
|
abstract void |
openCursor(DatabaseCursorCallback<I,V> callback)
Open a cursor to iterate over the object store.
|
abstract void |
openCursor(KeyRange<I> keyRange,
Cursor.CursorDirection direction,
DatabaseCursorCallback<I,V> callback)
Open a cursor to iterate over the object store.
|
abstract void |
openCursor(KeyRange<I> keyRange,
DatabaseCursorCallback<I,V> callback)
Open a cursor to iterate over the object store.
|
abstract void |
openKeyCursor(DatabaseCursorCallback<I,K> callback)
Open a cursor to iterate over the object store.
|
abstract void |
openKeyCursor(KeyRange<I> keyRange,
Cursor.CursorDirection direction,
DatabaseCursorCallback<I,K> callback)
Open a cursor to iterate over the object store.
|
abstract void |
openKeyCursor(KeyRange<I> keyRange,
DatabaseCursorCallback<I,K> callback)
Open a cursor to iterate over the object store.
|
reportErrorprotected final IDBIndex idbIndex
protected final IDXAbstractDatabase db
protected IDXIndex(IDXAbstractDatabase db, IDBIndex idbIndex)
public String getName()
public boolean isUnique()
Indexpublic boolean isMultiEntry()
IndexisMultiEntry in class Index<K,I,V>public void count(DatabaseCountCallback callback)
public void count(KeyRange<I> range, DatabaseCountCallback callback)
public abstract void get(I key, DatabaseRetrieveCallback<V> callback)
DatabaseRetrieveCallback.public abstract void get(KeyRange<I> keyRange, DatabaseRetrieveCallback<V> callback)
DatabaseRetrieveCallback.public abstract void getKey(I key, DatabaseRetrieveCallback<K> callback)
DatabaseRetrieveCallback.public abstract void getKey(KeyRange<I> keyRange, DatabaseRetrieveCallback<K> callback)
DatabaseRetrieveCallback.public abstract void openCursor(DatabaseCursorCallback<I,V> callback)
openCursor in class Index<K,I,V>callback - public abstract void openCursor(KeyRange<I> keyRange, DatabaseCursorCallback<I,V> callback)
openCursor in class Index<K,I,V>keyRange - callback - public abstract void openCursor(KeyRange<I> keyRange, Cursor.CursorDirection direction, DatabaseCursorCallback<I,V> callback)
openCursor in class Index<K,I,V>keyRange - direction - callback - public abstract void openKeyCursor(DatabaseCursorCallback<I,K> callback)
openKeyCursor in class Index<K,I,V>callback - public abstract void openKeyCursor(KeyRange<I> keyRange, DatabaseCursorCallback<I,K> callback)
openKeyCursor in class Index<K,I,V>keyRange - callback - public abstract void openKeyCursor(KeyRange<I> keyRange, Cursor.CursorDirection direction, DatabaseCursorCallback<I,K> callback)
openKeyCursor in class Index<K,I,V>keyRange - direction - callback - public abstract KeyRangeFactory<I> getKeyRangeFactory()
getKeyRangeFactory in class Index<K,I,V>Copyright © 2015. All rights reserved.