ROADMAP v0.5.0 - Streaming top-K for memory-efficient result limiting
(k: usize)
| 119 | /// ``` |
| 120 | #[allow(dead_code)] // ROADMAP v0.5.0 - Streaming top-K for memory-efficient result limiting |
| 121 | pub fn new(k: usize) -> Self { |
| 122 | Self { |
| 123 | heap: BinaryHeap::with_capacity(k + 1), // +1 for temporary overflow |
| 124 | k, |
| 125 | processed_count: 0, |
| 126 | would_keep_count: 0, |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | /// Add a row to the top-K |
| 131 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected