public interface

DBIterator

implements Closeable Iterator<E>
org.iq80.leveldb.DBIterator

Summary

Public Methods
abstract boolean hasPrev()
abstract Entry<byte[], byte[]> peekNext()
Returns the next element in the iteration, without advancing the iteration.
abstract Entry<byte[], byte[]> peekPrev()
abstract Entry<byte[], byte[]> prev()
abstract void seek(byte[] key)
Repositions the iterator so the key of the next BlockElement returned greater than or equal to the specified targetKey.
abstract void seekToFirst()
Repositions the iterator so is is at the beginning of the Database.
abstract void seekToLast()
Repositions the iterator so it is at the end of of the Database.
[Expand]
Inherited Methods
From interface java.io.Closeable
From interface java.lang.AutoCloseable
From interface java.util.Iterator

Public Methods

public abstract boolean hasPrev ()

Returns
  • true if there is a previous entry in the iteration.

public abstract Entry<byte[], byte[]> peekNext ()

Returns the next element in the iteration, without advancing the iteration.

public abstract Entry<byte[], byte[]> peekPrev ()

Returns
  • the previous element in the iteration, without rewinding the iteration.

public abstract Entry<byte[], byte[]> prev ()

Returns
  • the previous element in the iteration and rewinds the iteration.

public abstract void seek (byte[] key)

Repositions the iterator so the key of the next BlockElement returned greater than or equal to the specified targetKey.

public abstract void seekToFirst ()

Repositions the iterator so is is at the beginning of the Database.

public abstract void seekToLast ()

Repositions the iterator so it is at the end of of the Database.