|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cruxframework.crux.core.client.db.DBObject
org.cruxframework.crux.core.client.db.Index<K,I,V>
org.cruxframework.crux.core.client.db.IDXIndex<K,I,V>
K - object key typeI - index key type. The type of the indexed columnV - object typepublic abstract class IDXIndex<K,I,V>
CRUX INTERNAL CLASS. DO NOT USE IT DIRECTLY.
Indexed DB implementation for Index Interface. Use the interface Index instead.
| Field Summary | |
|---|---|
protected IDXAbstractDatabase |
db
|
protected IDBIndex |
idbIndex
|
| Fields inherited from class org.cruxframework.crux.core.client.db.DBObject |
|---|
logger |
| Constructor Summary | |
|---|---|
protected |
IDXIndex(IDXAbstractDatabase db,
IDBIndex idbIndex)
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.cruxframework.crux.core.client.db.DBObject |
|---|
reportError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final IDBIndex idbIndex
protected final IDXAbstractDatabase db
| Constructor Detail |
|---|
protected IDXIndex(IDXAbstractDatabase db,
IDBIndex idbIndex)
| Method Detail |
|---|
public String getName()
getName in class Index<K,I,V>public boolean isUnique()
Index
isUnique in class Index<K,I,V>public boolean isMultiEntry()
Index
isMultiEntry in class Index<K,I,V>public void count(DatabaseCountCallback callback)
count in class Index<K,I,V>callback -
public void count(KeyRange<I> range,
DatabaseCountCallback callback)
count in class Index<K,I,V>range - callback -
public abstract void get(I key,
DatabaseRetrieveCallback<V> callback)
DatabaseRetrieveCallback.
get in class Index<K,I,V>key - callback -
public abstract void get(KeyRange<I> keyRange,
DatabaseRetrieveCallback<V> callback)
DatabaseRetrieveCallback.
get in class Index<K,I,V>keyRange - callback -
public abstract void getKey(I key,
DatabaseRetrieveCallback<K> callback)
DatabaseRetrieveCallback.
getKey in class Index<K,I,V>key - callback -
public abstract void getKey(KeyRange<I> keyRange,
DatabaseRetrieveCallback<K> callback)
DatabaseRetrieveCallback.
getKey in class Index<K,I,V>keyRange - callback - 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>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||