com.coyotegulch.jisp
public interface IndexIterator
IndexIterator defines an object that references a specific object relative to other
objects in an ObjectIndex.
See Also: ObjectIndex BTreeIndex BTreeIterator IndexedObjectDatabase
| Method Summary | |
|---|---|
| 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.
|
Object currently referenced by this iterator.
Returns: the key Object currently referenced by this iterator; returns
null if the iterator is invalid or the record was not found
Object currently referenced by this iterator.
Returns: a long pointer (usually a file position) associated with this index
entry; returns -1 if the iterator is invalid or the record was not found
Returns: true if the iterator is valid; false if it is invalid.
Returns: true if the operation was successful; false otherwise.
Returns: true if the operation was successful; false otherwise.
Returns: true if the operation was successful; false otherwise
Returns: true if the operation was successful; false otherwise.
key.
Parameters: key key identifier to find
Returns: true if the operation was successful; false otherwise.
key.
Parameters: key key identifier to find
Returns: true if the operation was successful; false otherwise.