|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.collections.BlockIterator
class BlockIterator
An iterator that does need closing because a cursor is not kept open across method calls. A cursor is opened to read a block of records at a time and then closed before the method returns.
Constructor Summary | |
---|---|
BlockIterator(StoredCollection coll,
boolean writeAllowed,
int blockSize)
Creates an iterator. |
Method Summary | |
---|---|
void |
add(Object value)
|
ListIterator |
dup()
Duplicate a cursor. |
boolean |
hasNext()
|
boolean |
hasPrevious()
|
boolean |
isCurrentData(Object currentData)
Returns whether the given data is the current iterator data. |
boolean |
moveToIndex(int index)
Initializes a list iterator at the given index. |
Object |
next()
|
int |
nextIndex()
|
Object |
previous()
|
int |
previousIndex()
|
void |
remove()
|
void |
set(Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
BlockIterator(StoredCollection coll, boolean writeAllowed, int blockSize)
Method Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator
hasNext
in interface ListIterator
public boolean hasPrevious()
hasPrevious
in interface ListIterator
public Object next()
next
in interface Iterator
next
in interface ListIterator
public Object previous()
previous
in interface ListIterator
public int nextIndex()
nextIndex
in interface ListIterator
public int previousIndex()
previousIndex
in interface ListIterator
public void set(Object value)
set
in interface ListIterator
public void remove()
remove
in interface Iterator
remove
in interface ListIterator
public void add(Object value)
add
in interface ListIterator
public final ListIterator dup()
BaseIterator
dup
in interface BaseIterator
public final boolean isCurrentData(Object currentData)
BaseIterator
isCurrentData
in interface BaseIterator
public final boolean moveToIndex(int index)
BaseIterator
moveToIndex
in interface BaseIterator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |