Re-exportsΒ§
pub use self::compaction_utils::CompactionStatistics;pub use self::compaction_utils::RemoteBuilderFactory;pub use self::compaction_utils::TaskConfig;pub use self::compaction_utils::check_compaction_result;pub use self::compaction_utils::check_flush_result;
ModulesΒ§
- await_
tree_ key - compaction_
executor π - compaction_
filter π - compaction_
utils - compactor_
runner - context π
- fast_
compactor_ runner - iceberg_
compaction π - iterator π
- shared_
buffer_ πcompact - task_
progress π
StructsΒ§
- Compaction
Executor CompactionExecutoris a dedicated runtime for compactionβs CPU intensive jobs.- Compactor
- Implementation of Hummock compaction.
- Compactor
Context - A
CompactorContextdescribes the context of a compactor. - Concat
Sstable Iterator - Iterates over the KV-pairs of a given list of SSTs. The key-ranges of these SSTs are assumed to be consecutive and non-overlapping.
- Dummy
Compaction Filter - Multi
Compaction Filter - Sstable
Stream Iterator - Iterates over the KV-pairs of an SST while downloading it.
SstableStreamIteratorencapsulates operations onsstables, constructing block streams and accessing the corresponding data viablock_metas. Note that ablock_metadoes not necessarily correspond to the entire sstable, but rather to a subset, which is documented via theblock_idx. - State
Clean UpCompaction Filter - Task
Progress - The progress of a compaction task.
- TtlCompaction
Filter
TraitsΒ§
FunctionsΒ§
- compact
- Flush shared buffer to level0. Resulted SSTs are grouped by compaction group.
- get_
task_ πprogress - handle_
meta_ πtask_ pulling - Handle pulling new tasks from meta service Returns true if the stream should be restarted
- merge_
imms_ in_ memory - Merge multiple batches into a larger one
- new_
compaction_ await_ tree_ reg_ ref - schedule_
queued_ πtasks - Schedule queued tasks if we have capacity
- start_
compactor - The background compaction thread that receives compaction tasks from hummock compaction manager and runs compaction tasks.
- start_
iceberg_ compactor - The background compaction thread that receives compaction tasks from hummock compaction manager and runs compaction tasks.
- start_
shared_ compactor - The background compaction thread that receives compaction tasks from hummock compaction manager and runs compaction tasks.