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

Method deduplicate_rows

graphlite/src/exec/executor.rs:8019–8032  ·  view source on GitHub ↗

Remove duplicate rows from result set

(&self, mut rows: Vec<Row>)

Source from the content-addressed store, hash-verified

8017
8018 /// Remove duplicate rows from result set
8019 fn deduplicate_rows(&self, mut rows: Vec<Row>) -> Vec<Row> {
8020 use std::collections::HashSet;
8021
8022 let mut seen = HashSet::new();
8023 let mut deduplicated = Vec::new();
8024
8025 for row in rows.drain(..) {
8026 if seen.insert(row.clone()) {
8027 deduplicated.push(row);
8028 }
8029 }
8030
8031 deduplicated
8032 }
8033
8034 /// Infer the type of a literal value
8035 #[allow(dead_code)] // ROADMAP v0.5.0 - Literal type inference for static analysis

Callers 3

execute_unionMethod · 0.80
execute_intersectMethod · 0.80
execute_exceptMethod · 0.80

Calls 2

cloneMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected