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

Method with_index_scan_setting

graphlite/src/plan/optimizer.rs:149–162  ·  view source on GitHub ↗

ROADMAP v0.4.0 - Configuration for index scan behavior

(avoid_index_scan: bool)

Source from the content-addressed store, hash-verified

147 /// Create a query planner with index scan avoidance setting
148 #[allow(dead_code)] // ROADMAP v0.4.0 - Configuration for index scan behavior
149 pub fn with_index_scan_setting(avoid_index_scan: bool) -> Self {
150 let optimization_level = OptimizationLevel::Basic;
151
152 Self {
153 cost_model: CostModel::new(),
154 statistics: Statistics::new(),
155 optimization_level: optimization_level.clone(),
156 avoid_index_scan,
157 logical_builder: LogicalBuilder::new(),
158 physical_builder: PhysicalBuilder::new(),
159 logical_optimizer: LogicalOptimizer::new(optimization_level),
160 physical_optimizer: PhysicalOptimizer::new(avoid_index_scan),
161 }
162 }
163
164 /// Plan a query from AST document
165 pub fn plan_query(&mut self, document: &Document) -> Result<PhysicalPlan, PlanningError> {

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected