Package com.linkedin.davinci.store
Class AbstractStorageIterator
java.lang.Object
com.linkedin.davinci.store.AbstractStorageIterator
- Direct Known Subclasses:
RocksDBStorageIterator
-
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()
-
Constructor Details
-
AbstractStorageIterator
public AbstractStorageIterator()
-
-
Method Details
-
isValid
public boolean isValid()- Returns:
- true if the iterator is valid
-
key
public byte[] key()- Returns:
- the key of the current entry
-
value
public byte[] value()- Returns:
- the value of the current entry
-
next
public void next()Moves to the next entry -
prev
public void prev()Moves to the previous entry -
seek
public void seek(byte[] key) Seeks to the first entry whose key is greater than or equal to the given key- Parameters:
key
- the key to seek to
-
seekToFirst
public void seekToFirst()Seek to the first key -
seekToLast
public void seekToLast()Seek to the last key
-