|
|||||||||
| 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 IteratorhasNext in interface ListIteratorpublic boolean hasPrevious()
hasPrevious in interface ListIteratorpublic Object next()
next in interface Iteratornext in interface ListIteratorpublic Object previous()
previous in interface ListIteratorpublic int nextIndex()
nextIndex in interface ListIteratorpublic int previousIndex()
previousIndex in interface ListIteratorpublic void set(Object value)
set in interface ListIteratorpublic void remove()
remove in interface Iteratorremove in interface ListIteratorpublic void add(Object value)
add in interface ListIteratorpublic final ListIterator dup()
BaseIterator
dup in interface BaseIteratorpublic final boolean isCurrentData(Object currentData)
BaseIterator
isCurrentData in interface BaseIteratorpublic 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 | ||||||||