Class RocksDBStorageIterator
java.lang.Object
com.linkedin.davinci.store.AbstractStorageIterator
com.linkedin.davinci.store.rocksdb.RocksDBStorageIterator
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the iteratorbooleanisValid()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 keyvoidSeek to the first keyvoidSeek 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:
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
-
close
public void close()Description copied from class:AbstractStorageIteratorClose the iterator- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classAbstractStorageIterator
-