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

Method contains_limit

graphlite/src/plan/optimizers/logical_optimizer.rs:571–583  ·  view source on GitHub ↗

Check if node contains LIMIT

(&self, node: &LogicalNode)

Source from the content-addressed store, hash-verified

569
570 /// Check if node contains LIMIT
571 fn contains_limit(&self, node: &LogicalNode) -> bool {
572 match node {
573 LogicalNode::Limit { .. } => true,
574 LogicalNode::Filter { input, .. }
575 | LogicalNode::Project { input, .. }
576 | LogicalNode::Sort { input, .. }
577 | LogicalNode::Distinct { input, .. } => self.contains_limit(input),
578 LogicalNode::Join { left, right, .. } => {
579 self.contains_limit(left) || self.contains_limit(right)
580 }
581 _ => false,
582 }
583 }
584
585 /// Check if node returns unique values
586 fn returns_unique_values(&self, node: &LogicalNode) -> bool {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected