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.RocksIterator
iterator
-
Constructor Summary
Constructors Constructor Description RocksDBStorageIterator(org.rocksdb.RocksIterator iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValid()
byte[]
key()
void
next()
Moves to the next entryvoid
prev()
Moves to the previous entryvoid
seek(byte[] key)
Seeks to the first entry whose key is greater than or equal to the given keyvoid
seekToFirst()
Seek to the first keyvoid
seekToLast()
Seek to the last keybyte[]
value()
-
-
-
Method Detail
-
isValid
public boolean isValid()
- Overrides:
isValid
in classAbstractStorageIterator
- Returns:
- true if the iterator is valid
-
key
public byte[] key()
- Overrides:
key
in classAbstractStorageIterator
- Returns:
- the key of the current entry
-
value
public byte[] value()
- Overrides:
value
in classAbstractStorageIterator
- Returns:
- the value of the current entry
-
next
public void next()
Description copied from class:AbstractStorageIterator
Moves to the next entry- Overrides:
next
in classAbstractStorageIterator
-
prev
public void prev()
Description copied from class:AbstractStorageIterator
Moves to the previous entry- Overrides:
prev
in classAbstractStorageIterator
-
seek
public void seek(byte[] key)
Description copied from class:AbstractStorageIterator
Seeks to the first entry whose key is greater than or equal to the given key- Overrides:
seek
in classAbstractStorageIterator
- Parameters:
key
- the key to seek to
-
seekToFirst
public void seekToFirst()
Description copied from class:AbstractStorageIterator
Seek to the first key- Overrides:
seekToFirst
in classAbstractStorageIterator
-
seekToLast
public void seekToLast()
Description copied from class:AbstractStorageIterator
Seek to the last key- Overrides:
seekToLast
in classAbstractStorageIterator
-
-