|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IndexIterator
defines an object that references a specific object relative to other
objects in an ObjectIndex
.
ObjectIndex
,
BTreeIndex
,
BTreeIterator
,
IndexedObjectDatabase
Method Summary | |
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 . |
Method Detail |
public 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 found
java.io.IOException
public 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 found
java.io.IOException
public boolean moveNext() throws java.io.IOException, java.lang.ClassNotFoundException
true
if the operation was successful; false
otherwise
java.io.IOException
java.lang.ClassNotFoundException
public boolean movePrevious() throws java.io.IOException, java.lang.ClassNotFoundException
true
if the operation was successful; false
otherwise.
java.io.IOException
java.lang.ClassNotFoundException
public boolean moveFirst() throws java.io.IOException, java.lang.ClassNotFoundException
true
if the operation was successful; false
otherwise.
java.io.IOException
java.lang.ClassNotFoundException
public boolean moveLast() throws java.io.IOException, java.lang.ClassNotFoundException
true
if the operation was successful; false
otherwise.
java.io.IOException
java.lang.ClassNotFoundException
public boolean moveTo(KeyObject key) throws java.io.IOException, java.lang.ClassNotFoundException
key
.
key
- key identifier to find
true
if the operation was successful; false
otherwise.
java.io.IOException
java.lang.ClassNotFoundException
public boolean moveTo(KeyObject key, boolean acceptNext) throws java.io.IOException, java.lang.ClassNotFoundException
key
.
key
- key identifier to find
true
if the operation was successful; false
otherwise.
java.io.IOException
java.lang.ClassNotFoundException
public boolean isValid()
true
if the iterator is valid; false
if it is invalid.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |