Skip to main content

compile_selectors

Function compile_selectors 

Source
pub fn compile_selectors(
    stmt: &EvalStmt,
    bindings: &dyn Fn(&SelectorRequirement) -> Result<Arc<SeriesSchema>>,
    ordering: SeriesOrdering,
    source_kind: Option<FieldKind>,
) -> Result<CompiledTree>
Expand description

Compiles stmt into a tree and returns a binding record for each selector occurrence.

bindings is called once per selector with its requirements. The resulting source indices are occurrence numbers in compiler traversal order; the caller maps them to scan children.