Expand description
One line per node of a NativeTree.
The tree is displayed by recursively visiting its bound expressions. The display is an observation of a compiled tree: it runs nothing, and every line reads as the node it is, making no claim about whether that node could run.
A node that recorded figures shows them at the end of its own line, and only its own: the walk
carries the path the runtime registered that node under, so the figures of one node are never
reported as those of another. A tree whose nodes recorded nothing - one that was never run,
which is what EXPLAIN shows - prints structure only.
Structs§
- Native
Node Report - One displayed node: its line, the figures it recorded, and the nodes that consume its output.
- Native
Tree Display - A tree as it appears below the operator line: one node per line, two spaces per depth, and each node’s figures on its own line.
Constants§
- ROOT_
PATH - The path the runtime registers a tree’s root node under.
Functions§
- aggregate_
kind 🔒 - The PromQL name of an aggregate, with the constant argument it was bound to.
- aggregate_
name 🔒 - The PromQL name of an aggregate, without the argument it may have bound.
- binary_
op 🔒 - The PromQL symbol of a binary operator.
- child_
segments 🔒 - The child nodes of
nodeand the path segment each is registered under, in child order. - describe 🔒
- The operation a node computes, in the words of the query that produced it.
- describe_
aggregate 🔒 - An aggregate: what it folds, how its groups are identified and which stage it reports.
- fill 🔒
- function 🔒
- The PromQL name of a range function, with the constant argument it was bound to.
- grid_
name 🔒 - A grid as
<start>/<step>x<len>. - grid_of 🔒
- The grid a node’s output is evaluated on, or
-for one that has none. - grouping 🔒
- A grouping as
by [labels]orwithout [labels]. - kind 🔒
- What kind of node this is, as its line names it.
- label_
list 🔒 - A label list in the order it was bound.
- label_
pairs 🔒 - The labels of
metricasname="value"pairs, the metric name first. - map_op 🔒
- The PromQL call a map operation makes, with the constant arguments it was bound to.
- matching_
labels 🔒 - math_op 🔒
- The PromQL name of a math function, with the constant arguments it was bound to.
- ordering 🔒
- The ordering an input guarantees, when it is weaker than the scan’s default.
- report_
node 🔒 - The node at
pathand everything below it, with the figures each node recorded. - window 🔒
- A window: what it runs, over which range, and where it lands.
- write_
report 🔒