Class RocksDBStorageIterator
java.lang.Object
com.linkedin.davinci.store.AbstractStorageIterator
com.linkedin.davinci.store.rocksdb.RocksDBStorageIterator
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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
Seek to the first keyvoid
Seek to the last keybyte[]
value()
-
Field Details
-
iterator
public final org.rocksdb.RocksIterator iterator
-
-
Constructor Details
-
RocksDBStorageIterator
public RocksDBStorageIterator(org.rocksdb.RocksIterator iterator)
-
-
Method Details
-
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
-