public interface DBIterator extends Iterator<Map.Entry<byte[],byte[]>>, Closeable
Modifier and Type | Method and Description |
---|---|
boolean |
hasPrev() |
Map.Entry<byte[],byte[]> |
peekNext()
Returns the next element in the iteration, without advancing the iteration.
|
Map.Entry<byte[],byte[]> |
peekPrev() |
Map.Entry<byte[],byte[]> |
prev() |
void |
seek(byte[] key)
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.
|
forEachRemaining, hasNext, next, remove
void seek(byte[] key)
void seekToFirst()
Map.Entry<byte[],byte[]> peekNext()
boolean hasPrev()
Map.Entry<byte[],byte[]> prev()
Map.Entry<byte[],byte[]> peekPrev()
void seekToLast()
Copyright © 2011–2019. All rights reserved.