Skip to main content

Crate hawdb_optimizer_graph

Crate hawdb_optimizer_graph 

Source
Expand description

Graph catalog, costing, rewrites, lowering, and typed trace ownership.

Re-exports§

pub use graph::CascadesOptimizer;
pub use graph::FastPathPhysicalPlanRoot;
pub use graph::OptimizerCatalog;
pub use graph::OptimizerCatalogIndexes;
pub use graph::OptimizerCatalogStatistics;
pub use graph::OptimizerIndexStatistics;
pub use graph::PhysicalPlanRoot;
pub use logical::LogicalPlanClass;
pub use logical::LogicalPlanKind;
pub use logical::LogicalPlanNode;
pub use search::OptimizationSearchReport;
pub use search::SelectedPlanTrace;
pub use trace::OperatorCardinalityEstimate;
pub use trace::OptimizerTrace;

Modules§

context
Compatibility path for the framework-owned optimizer context.
cost
graph
logical
Logical optimizer operator metadata.
memo
operator
Compatibility re-exports for optimizer operator metadata.
properties
rule
search
stage
trace

Structs§

AppliedRule
FastPathPhysicalPhase
GroupId
InvalidOptimizerCostPerturbation
LogicalPhase
LogicalPlanRoot
LoweringReadyLogicalPlanRoot
LoweringReadyPhase
Memo
MemoGroup
OptimizationPipeline
OptimizationStage
OptimizerConfig
OptimizerContext
OptimizerCostPerturbation
Reproducible ranking noise. It never changes a raw reported cost, a search budget, an expression, or whether a candidate is legal.
OptimizerQualificationOptions
Fixed-size controls; unknown/essential rules cannot enter the disabled mask.
PhysicalOperatorId
A plan-local physical operator identity assigned in pre-order.
PhysicalPhase
PhysicalProperties
PipelineExecution
PlanCost
PlanCostBreakdown
Cardinality and unweighted logical work, plus the weighted scalar total.
PlanCostWeights
Relative weights applied once to raw logical work components.
RequiredProperties
ResourceHints
RuleApplication
RuleBatch
RuleEvent
RuleId
RulePromise
RuleStage
StageRuleBatch
StageStats
StageTrace

Enums§

ApplyOrder
Distribution
ExplainMode
MemoryBudgetClass
OptimizerBoundedOrderAlternative
Named legal alternatives for one bounded ORDER BY ... LIMIT decision.
OptimizerRuleAssertion
Assertions inspect structured applied outcomes, not mentions in plan text.
OptimizerRuleAssertionError
OptimizerSearchDirective
OptimizerSearchDirectiveError
OptionalOptimizerRule
Optional proof transformations supported by the qualification interface.
PhysicalPlanClass
PhysicalPlanKind
PlanChildren
PlanPhaseKind
QueryFamily
RuleKind
RuleOutcome
ScanPruningSupport
SearchMode
StatementClass
TraceSink
VectorPrecision

Constants§

BOUNDED_ORDER_QUALIFICATION_RULE
Structured trace rule emitted exactly once when an explicit bounded-order alternative is selected successfully.
DEFAULT_PLAN_COST_POLICY_ID
Stable identity of the default logical-work policy recorded in qualification evidence. A different default requires a separately reviewed policy change.
DEFAULT_PLAN_COST_WEIGHTS

Traits§

OptimizerRule
PhysicalPlanNode
PlanNode
PlanPhase

Functions§

apply_rule_batch
plan_class_counts
plan_operator_counts
verify_optimizer_rule_assertions
visit_plan
visit_plan_with_ids
Visits a physical plan in pre-order and assigns each operator its plan-local identity.