Skip to main content

Module compactor

Module compactor 

Source

StructsΒ§

CompactionRegion
CompactionRegion represents a region that needs to be compacted. It’s the subset of MitoRegion.
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Β§

known_max_input_sequence πŸ”’
Computes the maximum target-domain sequence bound of the output of merging inputs. A bound can be a row maximum or an admission marker; compaction must preserve both for sequence-based pruning. Unknown bounds must remain unknown rather than being replaced with a partial maximum.
open_compaction_region
Open a compaction region from a compaction request. It’s simple version of RegionOpener::open().
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.
sst_info_from_file_meta πŸ”’
Builds an SstInfo for the remote-compaction path by copying the scalar fields that FileMeta also carries.