MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Protected 属性 | 所有成员列表
oceanbase::ObCompactionPicker类 参考abstract

Abstract base class for compaction picker strategies in an LSM-Tree. 更多...

#include <ob_compaction_picker.h>

类 oceanbase::ObCompactionPicker 继承关系图:
oceanbase::TiredCompactionPicker

Public 成员函数

 ObCompactionPicker (ObLsmOptions *options)
 
virtual unique_ptr< ObCompactionpick (SSTablesPtr sstables)=0
 Pure virtual method to pick a compaction task. 更多...
 

静态 Public 成员函数

static ObCompactionPickercreate (CompactionType type, ObLsmOptions *options)
 Static factory method to create a specific compaction picker. 更多...
 

Protected 属性

ObLsmOptionsoptions_
 Pointer to the LSM-Tree options configuration.
 

详细描述

Abstract base class for compaction picker strategies in an LSM-Tree.

This class defines the interface for picking a compaction task from a set of SSTables. Derived classes will implement specific compaction strategies (e.g., tiered or leveled compaction).

构造及析构函数说明

◆ ObCompactionPicker()

oceanbase::ObCompactionPicker::ObCompactionPicker ( ObLsmOptions options)
inline
参数
optionsPointer to the LSM-Tree options configuration.

成员函数说明

◆ create()

ObCompactionPicker * oceanbase::ObCompactionPicker::create ( CompactionType  type,
ObLsmOptions options 
)
static

Static factory method to create a specific compaction picker.

参数
typeThe type of compaction strategy (e.g., tiered, leveled).
optionsPointer to the LSM-Tree options configuration.
返回
A pointer to the created ObCompactionPicker instance.

◆ pick()

virtual unique_ptr< ObCompaction > oceanbase::ObCompactionPicker::pick ( SSTablesPtr  sstables)
pure virtual

Pure virtual method to pick a compaction task.

参数
sstablesA pointer to the SSTables available for compaction.
返回
A unique pointer to the selected compaction task.

oceanbase::TiredCompactionPicker 内被实现.


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