Returns whether sliding-window compaction is fully configured.
(config: EventsCompactionConfig | None)
| 212 | |
| 213 | |
| 214 | def _has_sliding_window_config(config: EventsCompactionConfig | None) -> bool: |
| 215 | """Returns whether sliding-window compaction is fully configured.""" |
| 216 | return bool( |
| 217 | config |
| 218 | and config.compaction_interval is not None |
| 219 | and config.overlap_size is not None |
| 220 | ) |
| 221 | |
| 222 | |
| 223 | def _ensure_compaction_summarizer( |
no outgoing calls
no test coverage detected