MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
Public 成员函数 | Private 成员函数 | Private 属性 | 所有成员列表
oceanbase::TableIterator类 参考
类 oceanbase::TableIterator 继承关系图:
oceanbase::ObLsmIterator

Public 成员函数

 TableIterator (const shared_ptr< ObSSTable > &sst)
 
void seek (const string_view &key) override
 Positions the iterator at the first entry with a key greater than or equal to the specified key. 更多...
 
void seek_to_first () override
 Positions the iterator at the first key-value pair in the source. 更多...
 
void seek_to_last () override
 Positions the iterator at the last key-value pair in the source. 更多...
 
void next () override
 Moves the iterator to the next key-value pair in the source. 更多...
 
bool valid () const override
 Checks if the iterator is currently positioned at a valid key-value pair. 更多...
 
string_view key () const override
 Returns the key of the current entry the iterator is positioned at. 更多...
 
string_view value () const override
 Returns the value of the current entry the iterator is positioned at. 更多...
 
- Public 成员函数 继承自 oceanbase::ObLsmIterator
 ObLsmIterator (const ObLsmIterator &)=delete
 
ObLsmIteratoroperator= (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. 更多...
 

Private 成员函数

void read_block_with_cache ()
 

Private 属性

const shared_ptr< ObSSTablesst_
 
uint32_t block_cnt_ = 0
 
uint32_t curr_block_idx_ = 0
 
shared_ptr< ObBlockblock_
 
unique_ptr< ObLsmIteratorblock_iterator_
 

成员函数说明

◆ key()

string_view oceanbase::TableIterator::key ( ) const
inlineoverridevirtual

Returns the key of the current entry the iterator is positioned at.

This method retrieves the key corresponding to the key-value pair at the current position of the iterator.

返回
A string_view containing the key of the current entry.

实现了 oceanbase::ObLsmIterator.

◆ next()

void oceanbase::TableIterator::next ( )
overridevirtual

Moves the iterator to the next key-value pair in the source.

实现了 oceanbase::ObLsmIterator.

◆ seek()

void oceanbase::TableIterator::seek ( const string_view &  k)
overridevirtual

Positions the iterator at the first entry with a key greater than or equal to the specified key.

参数
kThe key to search for.

实现了 oceanbase::ObLsmIterator.

◆ seek_to_first()

void oceanbase::TableIterator::seek_to_first ( )
overridevirtual

Positions the iterator at the first key-value pair in the source.

实现了 oceanbase::ObLsmIterator.

◆ seek_to_last()

void oceanbase::TableIterator::seek_to_last ( )
overridevirtual

Positions the iterator at the last key-value pair in the source.

实现了 oceanbase::ObLsmIterator.

◆ valid()

bool oceanbase::TableIterator::valid ( ) const
inlineoverridevirtual

Checks if the iterator is currently positioned at a valid key-value pair.

返回
true if the iterator is valid, false otherwise.

实现了 oceanbase::ObLsmIterator.

◆ value()

string_view oceanbase::TableIterator::value ( ) const
inlineoverridevirtual

Returns the value of the current entry the iterator is positioned at.

This method retrieves the value corresponding to the key-value pair at the current position of the iterator.

返回
A string_view containing the value of the current entry.

实现了 oceanbase::ObLsmIterator.


该类的文档由以下文件生成: