|
MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
|
Abstract base class for compaction picker strategies in an LSM-Tree. 更多...
#include <ob_compaction_picker.h>
Public 成员函数 | |
| ObCompactionPicker (ObLsmOptions *options) | |
| virtual unique_ptr< ObCompaction > | pick (SSTablesPtr sstables)=0 |
| Pure virtual method to pick a compaction task. 更多... | |
静态 Public 成员函数 | |
| static ObCompactionPicker * | create (CompactionType type, ObLsmOptions *options) |
| Static factory method to create a specific compaction picker. 更多... | |
Protected 属性 | |
| ObLsmOptions * | options_ |
| 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).
|
inline |
| options | Pointer to the LSM-Tree options configuration. |
|
static |
Static factory method to create a specific compaction picker.
| type | The type of compaction strategy (e.g., tiered, leveled). |
| options | Pointer to the LSM-Tree options configuration. |
|
pure virtual |
Pure virtual method to pick a compaction task.
| sstables | A pointer to the SSTables available for compaction. |
在 oceanbase::TiredCompactionPicker 内被实现.