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Β§

known_max_input_sequence πŸ”’
Computes the maximum target-domain sequence bound of the output of merging inputs.
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.