MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / new

Method new

graphlite/src/exec/streaming_topk.rs:121–128  ·  view source on GitHub ↗

ROADMAP v0.5.0 - Streaming top-K for memory-efficient result limiting

(k: usize)

Source from the content-addressed store, hash-verified

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 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected