public interface IndexIterator
IndexIterator defines an object that references a specific object relative to other
objects in an ObjectIndex.
ObjectIndex,
BTreeIndex,
BTreeIterator,
IndexedObjectDatabase| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getKey()
Returns the key
Object currently referenced by this iterator. |
long |
getRecPtr()
Returns the record
Object currently referenced by this iterator. |
boolean |
isValid()
Checks to see if this iterator is valid.
|
boolean |
moveFirst()
Moves this iterator to the first record in sequence.
|
boolean |
moveLast()
Moves this iterator to the last record in sequence.
|
boolean |
moveNext()
Moves this iterator to the next record in sequence.
|
boolean |
movePrevious()
Moves this iterator to the previous record in sequence.
|
boolean |
moveTo(KeyObject key)
Moves this iterator to the record associated with the given
key. |
boolean |
moveTo(KeyObject key,
boolean acceptNext)
Moves this iterator to the record associated with the given
key. |
long getRecPtr()
throws java.io.IOException
Object currently referenced by this iterator.long pointer (usually a file position) associated with this index
entry; returns -1 if the iterator is invalid or the record was not foundjava.io.IOExceptionjava.lang.Object getKey()
throws java.io.IOException
Object currently referenced by this iterator.Object currently referenced by this iterator; returns
null if the iterator is invalid or the record was not foundjava.io.IOExceptionboolean moveNext()
throws java.io.IOException,
java.lang.ClassNotFoundException
true if the operation was successful; false otherwisejava.io.IOExceptionjava.lang.ClassNotFoundExceptionboolean movePrevious()
throws java.io.IOException,
java.lang.ClassNotFoundException
true if the operation was successful; false otherwise.java.io.IOExceptionjava.lang.ClassNotFoundExceptionboolean moveFirst()
throws java.io.IOException,
java.lang.ClassNotFoundException
true if the operation was successful; false otherwise.java.io.IOExceptionjava.lang.ClassNotFoundExceptionboolean moveLast()
throws java.io.IOException,
java.lang.ClassNotFoundException
true if the operation was successful; false otherwise.java.io.IOExceptionjava.lang.ClassNotFoundExceptionboolean moveTo(KeyObject key) throws java.io.IOException, java.lang.ClassNotFoundException
key.key - key identifier to findtrue if the operation was successful; false otherwise.java.io.IOExceptionjava.lang.ClassNotFoundExceptionboolean moveTo(KeyObject key, boolean acceptNext) throws java.io.IOException, java.lang.ClassNotFoundException
key.key - key identifier to findtrue if the operation was successful; false otherwise.java.io.IOExceptionjava.lang.ClassNotFoundExceptionboolean isValid()
true if the iterator is valid; false if it is invalid.