public class SeekingIteratorAdapter extends Object implements DBIterator
| Modifier and Type | Class and Description |
|---|---|
static class |
SeekingIteratorAdapter.DbEntry |
| Constructor and Description |
|---|
SeekingIteratorAdapter(SnapshotSeekingIterator seekingIterator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
boolean |
hasPrev() |
SeekingIteratorAdapter.DbEntry |
next() |
SeekingIteratorAdapter.DbEntry |
peekNext()
Returns the next element in the iteration, without advancing the iteration.
|
SeekingIteratorAdapter.DbEntry |
peekPrev() |
SeekingIteratorAdapter.DbEntry |
prev() |
void |
remove() |
void |
seek(byte[] targetKey)
Repositions the iterator so the key of the next BlockElement
returned greater than or equal to the specified targetKey.
|
void |
seekToFirst()
Repositions the iterator so is is at the beginning of the Database.
|
void |
seekToLast()
Repositions the iterator so it is at the end of of the Database.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic SeekingIteratorAdapter(SnapshotSeekingIterator seekingIterator)
public void seekToFirst()
DBIteratorseekToFirst in interface DBIteratorpublic void seek(byte[] targetKey)
DBIteratorseek in interface DBIteratorpublic boolean hasNext()
public SeekingIteratorAdapter.DbEntry next()
public SeekingIteratorAdapter.DbEntry peekNext()
DBIteratorpeekNext in interface DBIteratorpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void seekToLast()
DBIteratorseekToLast in interface DBIteratorpublic boolean hasPrev()
hasPrev in interface DBIteratorpublic SeekingIteratorAdapter.DbEntry prev()
prev in interface DBIteratorpublic SeekingIteratorAdapter.DbEntry peekPrev()
peekPrev in interface DBIteratorCopyright © 2011–2025. All rights reserved.