MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
|
An iterator for traversing the transaction's in-memory store 更多...
#include <ob_lsm_transaction.h>
额外继承的成员函数 | |
![]() | |
ObLsmIterator (const ObLsmIterator &)=delete | |
ObLsmIterator & | operator= (const ObLsmIterator &)=delete |
virtual bool | valid () const =0 |
Checks if the iterator is currently positioned at a valid key-value pair. 更多... | |
virtual void | next ()=0 |
Moves the iterator to the next key-value pair in the source. 更多... | |
virtual string_view | key () const =0 |
Returns the key of the current entry the iterator is positioned at. 更多... | |
virtual string_view | value () const =0 |
Returns the value of the current entry the iterator is positioned at. 更多... | |
virtual void | seek (const string_view &k)=0 |
Positions the iterator at the first entry with a key greater than or equal to the specified key. 更多... | |
virtual void | seek_to_first ()=0 |
Positions the iterator at the first key-value pair in the source. 更多... | |
virtual void | seek_to_last ()=0 |
Positions the iterator at the last key-value pair in the source. 更多... | |
An iterator for traversing the transaction's in-memory store