|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.obsearch.storage.bdb.AbstractBDBOBStoreJe.CursorIterator<T>
O - The type of tuple that will be returned by the iterator.protected abstract class AbstractBDBOBStoreJe.CursorIterator<T>
Base class used to iterate over cursors.
| Field Summary | |
|---|---|
protected com.sleepycat.je.Cursor |
cursor
|
protected com.sleepycat.je.DatabaseEntry |
dataEntry
|
protected com.sleepycat.je.DatabaseEntry |
keyEntry
|
protected com.sleepycat.je.DatabaseEntry |
prevDataEntry
Previous data entry |
protected com.sleepycat.je.DatabaseEntry |
prevKeyEntry
Previous key entry |
protected com.sleepycat.je.OperationStatus |
retVal
|
| Constructor Summary | |
|---|---|
protected |
AbstractBDBOBStoreJe.CursorIterator()
Creates a cursor iterator in full mode. |
|
AbstractBDBOBStoreJe.CursorIterator(byte[] min,
byte[] max)
|
protected |
AbstractBDBOBStoreJe.CursorIterator(byte[] min,
byte[] max,
boolean full,
boolean backwards,
boolean dups)
|
| Method Summary | |
|---|---|
void |
closeCursor()
|
protected T |
createT(byte[] key,
byte[] value)
|
protected abstract T |
createTuple(byte[] key,
byte[] value)
Creates a tuple from the given key and value. |
boolean |
hasNext()
|
T |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected com.sleepycat.je.Cursor cursor
protected com.sleepycat.je.DatabaseEntry keyEntry
protected com.sleepycat.je.DatabaseEntry dataEntry
protected com.sleepycat.je.DatabaseEntry prevKeyEntry
protected com.sleepycat.je.DatabaseEntry prevDataEntry
protected com.sleepycat.je.OperationStatus retVal
| Constructor Detail |
|---|
protected AbstractBDBOBStoreJe.CursorIterator()
throws OBStorageException
OBStorageException
public AbstractBDBOBStoreJe.CursorIterator(byte[] min,
byte[] max)
throws OBStorageException
OBStorageException
protected AbstractBDBOBStoreJe.CursorIterator(byte[] min,
byte[] max,
boolean full,
boolean backwards,
boolean dups)
throws OBStorageException
OBStorageException| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator<T>
protected T createT(byte[] key,
byte[] value)
protected abstract T createTuple(byte[] key,
byte[] value)
key - raw key.value - raw value.
public T next()
next in interface Iterator<T>
public void closeCursor()
throws OBException
closeCursor in interface CloseIterator<T>OBExceptionpublic void remove()
remove in interface Iterator<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||