Skip to main content

Module twcs

Module twcs 

Source

Structsยง

TwcsPicker
TwcsPicker picks files of which the max timestamp are in the same time window as compaction candidates.
Window ๐Ÿ”’

Constantsยง

DEFAULT_MAX_INPUT_FILE_NUM ๐Ÿ”’
Default value for max compaction input file num.
LEVEL_COMPACTED ๐Ÿ”’

Functionsยง

assign_to_windows ๐Ÿ”’
Assigns files to windows with predefined window size (in seconds) by their max timestamps.
find_latest_window_in_seconds ๐Ÿ”’
Finds the latest active writing window among all files. Returns None when there are no files or all files are corrupted.
log_pick_result ๐Ÿ”’