Class RocksDBStorageIterator
- java.lang.Object
-
- com.linkedin.davinci.store.AbstractStorageIterator
-
- com.linkedin.davinci.store.rocksdb.RocksDBStorageIterator
-
public class RocksDBStorageIterator extends AbstractStorageIterator
-
-
Field Summary
Fields Modifier and Type Field Description org.rocksdb.RocksIteratoriterator
-
Constructor Summary
Constructors Constructor Description RocksDBStorageIterator(org.rocksdb.RocksIterator iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisValid()byte[]key()voidnext()Moves to the next entryvoidprev()Moves to the previous entryvoidseek(byte[] key)Seeks to the first entry whose key is greater than or equal to the given keyvoidseekToFirst()Seek to the first keyvoidseekToLast()Seek to the last keybyte[]value()
-
-
-
Method Detail
-
isValid
public boolean isValid()
- Overrides:
isValidin classAbstractStorageIterator- Returns:
- true if the iterator is valid
-
key
public byte[] key()
- Overrides:
keyin classAbstractStorageIterator- Returns:
- the key of the current entry
-
value
public byte[] value()
- Overrides:
valuein classAbstractStorageIterator- Returns:
- the value of the current entry
-
next
public void next()
Description copied from class:AbstractStorageIteratorMoves to the next entry- Overrides:
nextin classAbstractStorageIterator
-
prev
public void prev()
Description copied from class:AbstractStorageIteratorMoves to the previous entry- Overrides:
previn classAbstractStorageIterator
-
seek
public void seek(byte[] key)
Description copied from class:AbstractStorageIteratorSeeks to the first entry whose key is greater than or equal to the given key- Overrides:
seekin classAbstractStorageIterator- Parameters:
key- the key to seek to
-
seekToFirst
public void seekToFirst()
Description copied from class:AbstractStorageIteratorSeek to the first key- Overrides:
seekToFirstin classAbstractStorageIterator
-
seekToLast
public void seekToLast()
Description copied from class:AbstractStorageIteratorSeek to the last key- Overrides:
seekToLastin classAbstractStorageIterator
-
-