Skip to main content

Module compactor

Module compactor 

Source

StructsΒ§

CompactionContext
Execution resources for compaction, without a region-wide SST snapshot.
CompactionRegion
CompactionRegion represents a region that needs to be compacted. It’s the subset of MitoRegion.
CompactionRegionOpener
Opens manifest-backed compaction regions using executor-owned index resources.
CompactionVersion
Region version for compaction that does not hold memtables.
DefaultCompactor
DefaultCompactor is the default implementation of Compactor.
DefaultSstMerger
The production SstMerger that reads, merges, and writes SST files.
MergeOutput
[MergeOutput] represents the output of merging SST files.
OpenCompactionRegionRequest
OpenCompactionRegionRequest represents the request to open a compaction region.
OutputSequenceMetadata πŸ”’
File-level sequence metadata is independent of physical row encoding.

TraitsΒ§

Compactor
Compactor is the trait that defines the compaction logic.
SstMerger
Trait for merging a single compaction output into SST files.

FunctionsΒ§

can_reuse_output_inputs πŸ”’
Whole-input summaries require a complete output without file rollover.
compaction_output_parallelism πŸ”’
Parallelism of encoding an output, which is also the parallelism of reading its inputs. Admission sizes the read-ahead with it, so every caller must use this function.
invoke_sst_hook πŸ”’
known_max_input_sequence πŸ”’
Computes the maximum target-domain sequence bound of the output of merging inputs.
output_matches_partition πŸ”’
Whole-file summaries are usable only when reading needs no partition filtering.
output_sequence_metadata πŸ”’
Compaction does not admit new data, so it inherits the input sequence bounds without allocating a new admission marker. Retaining physical row sequences does not by itself restore exact-read capability for untrusted inputs.
reusable_index_inputs πŸ”’
sst_info_from_file_meta πŸ”’
Builds an SstInfo for the remote-compaction path by copying the scalar fields that FileMeta also carries.
validate_region_compaction_output πŸ”’