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Β§
- CompactionExecutor 
- CompactionExecutoris a dedicated runtime for compactionβs CPU intensive jobs.
- CompactionLogState π
- Represents the compaction task state for logging purposes
- Compactor
- Implementation of Hummock compaction.
- CompactorContext 
- A CompactorContextdescribes the context of a compactor.
- ConcatSstable 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.
- DummyCompaction Filter 
- IcebergCompaction πLogState 
- Represents the iceberg compaction task state for logging purposes
- LogThrottler π
- Controls periodic logging with state change detection
- MultiCompaction Filter 
- SstableStream 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.
- StateClean UpCompaction Filter 
- TaskProgress 
- The progress of a compaction task.
- TtlCompactionFilter 
ConstantsΒ§
- COMPACTION_HEARTBEAT_ πLOG_ INTERVAL 
- Heartbeat logging interval for compaction tasks
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.