Module compaction

Module compaction 

Source

ModulesΒ§

buckets πŸ”’
compactor
memory_manager
picker
run
This file contains code to find sorted runs in a set if ranged items and along with the best way to merge these items to satisfy the desired run count.
task πŸ”’
twcs πŸ”’
window πŸ”’

StructsΒ§

CompactionOutput
CompactionRequest
Region compaction request.
CompactionScheduler πŸ”’
Compaction scheduler tracks and manages compaction tasks.
CompactionSstReaderBuilder πŸ”’
Builders to create BoxedBatchReader for compaction.
CompactionStatus πŸ”’
Status of running and pending region compaction tasks.
PendingCompaction πŸ”’
Pending compaction request that is supposed to run after current task is finished, typically used for manual compactions.
SerializedCompactionOutput
SerializedCompactionOutput is a serialized version of CompactionOutput by replacing FileHandle with FileMeta.

FunctionsΒ§

estimate_compaction_bytes πŸ”’
Estimates compaction memory as the sum of all input files’ maximum row-group uncompressed sizes.
find_ttl πŸ”’
Finds TTL of table by first examine table options then database options.
get_expired_ssts πŸ”’
Finds all expired SSTs across levels.
time_range_to_predicate πŸ”’
Converts time range to predicates so that rows outside the range will be filtered.
ts_to_lit πŸ”’