K - object key typeI - index key type. The type of the indexed columnV - object typepublic abstract class WSQLIndex<K,I,V> extends Index<K,I,V>
| Modifier and Type | Field and Description |
|---|---|
protected WSQLAbstractDatabase |
db |
protected WSQLTransaction |
transaction |
| Modifier | Constructor and Description |
|---|---|
protected |
WSQLIndex(WSQLAbstractDatabase db,
WSQLTransaction transaction) |
| 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.
|
void |
get(I key,
DatabaseRetrieveCallback<V> callback)
Retrieve the object associated with the given key from the index.
|
void |
get(KeyRange<I> keyRange,
DatabaseRetrieveCallback<V> callback)
Retrieve the object in the given keyRange from the index.
|
void |
getKey(I key,
DatabaseRetrieveCallback<K> callback)
Retrieve the object key associated with the given key from the index.
|
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.
|
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.
|
void |
openCursor(KeyRange<I> keyRange,
DatabaseCursorCallback<I,V> callback)
Open a cursor to iterate over the object store.
|
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.
|
void |
openKeyCursor(KeyRange<I> keyRange,
DatabaseCursorCallback<I,K> callback)
Open a cursor to iterate over the object store.
|
getName, isMultiEntry, isUniquereportErrorprotected final WSQLAbstractDatabase db
protected final WSQLTransaction transaction
protected WSQLIndex(WSQLAbstractDatabase db, WSQLTransaction transaction)
public void count(DatabaseCountCallback callback)
public void count(KeyRange<I> range, DatabaseCountCallback callback)
public void get(I key, DatabaseRetrieveCallback<V> callback)
DatabaseRetrieveCallback.public void get(KeyRange<I> keyRange, DatabaseRetrieveCallback<V> callback)
DatabaseRetrieveCallback.public void getKey(I key, DatabaseRetrieveCallback<K> callback)
DatabaseRetrieveCallback.public void getKey(KeyRange<I> keyRange, DatabaseRetrieveCallback<K> callback)
DatabaseRetrieveCallback.public void openCursor(DatabaseCursorCallback<I,V> callback)
openCursor in class Index<K,I,V>callback - public void openCursor(KeyRange<I> keyRange, DatabaseCursorCallback<I,V> callback)
openCursor in class Index<K,I,V>keyRange - callback - public void openKeyCursor(DatabaseCursorCallback<I,K> callback)
openKeyCursor in class Index<K,I,V>callback - public void openKeyCursor(KeyRange<I> keyRange, DatabaseCursorCallback<I,K> callback)
openKeyCursor 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(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.