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, wait
forEachRemaining
public SeekingIteratorAdapter(SnapshotSeekingIterator seekingIterator)
public void seekToFirst()
DBIterator
seekToFirst
in interface DBIterator
public void seek(byte[] targetKey)
DBIterator
seek
in interface DBIterator
public boolean hasNext()
public SeekingIteratorAdapter.DbEntry next()
public SeekingIteratorAdapter.DbEntry peekNext()
DBIterator
peekNext
in interface DBIterator
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void seekToLast()
DBIterator
seekToLast
in interface DBIterator
public boolean hasPrev()
hasPrev
in interface DBIterator
public SeekingIteratorAdapter.DbEntry prev()
prev
in interface DBIterator
public SeekingIteratorAdapter.DbEntry peekPrev()
peekPrev
in interface DBIterator
Copyright © 2011–2024. All rights reserved.