Module compaction

Source

Modulesยง

buckets ๐Ÿ”’
compactor
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ยง

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 ๐Ÿ”’