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

Method apply_intersect

graphlite/src/plan/operators/logical.rs:662–677  ·  view source on GitHub ↗

Apply intersect operation

(self, right: LogicalPlan, all: bool)

Source from the content-addressed store, hash-verified

660
661 /// Apply intersect operation
662 pub fn apply_intersect(self, right: LogicalPlan, all: bool) -> Self {
663 // Merge variables from both sides of the INTERSECT
664 let mut merged_variables = self.variables;
665 for (name, info) in right.variables {
666 merged_variables.insert(name, info);
667 }
668
669 LogicalPlan {
670 root: LogicalNode::Intersect {
671 left: Box::new(self.root),
672 right: Box::new(right.root),
673 all,
674 },
675 variables: merged_variables, // Intersect inherits variables from both sides
676 }
677 }
678
679 /// Apply except operation
680 pub fn apply_except(self, right: LogicalPlan, all: bool) -> Self {

Callers 1

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected