BTreeIterator
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 | 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.IOException
java.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.IOException
boolean moveNext() throws java.io.IOException, java.lang.ClassNotFoundException
true
if the operation was successful; false
otherwisejava.io.IOException
java.lang.ClassNotFoundException
boolean movePrevious() throws java.io.IOException, java.lang.ClassNotFoundException
true
if the operation was successful; false
otherwise.java.io.IOException
java.lang.ClassNotFoundException
boolean moveFirst() throws java.io.IOException, java.lang.ClassNotFoundException
true
if the operation was successful; false
otherwise.java.io.IOException
java.lang.ClassNotFoundException
boolean moveLast() throws java.io.IOException, java.lang.ClassNotFoundException
true
if the operation was successful; false
otherwise.java.io.IOException
java.lang.ClassNotFoundException
boolean 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.IOException
java.lang.ClassNotFoundException
boolean 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.IOException
java.lang.ClassNotFoundException
boolean isValid()
true
if the iterator is valid; false
if it is invalid.