Skip to main content

Module picker

Module picker 

Source

Structs§

PickerOutput
PickerOutput is the output of a Picker. It contains the outputs of the compaction and the expired SST files.
SerializedPickerOutput
SerializedPickerOutput is a serialized version of PickerOutput by replacing CompactionOutput and FileHandle with SerializedCompactionOutput and FileMeta.

Traits§

Picker
Picker picks input SST files for compaction. Different compaction strategy may implement different pickers.

Functions§

get_expired_ssts 🔒
Finds all expired SSTs across levels.
new_picker
Creates a picker for the request and the region’s compaction and merge modes.