Expand description
Running a bound tree, node by node.
Each execution owns a recursive runtime tree; the compiled NativeTree stays immutable, so one
tree builds independent executions. A caller registers the treeβs per-node metric handles into
its own metrics set once, before the execution starts.
StructsΒ§
- Binary
Runtime π - What a binary or set node holds: both operands until they end.
- Broadcast
Runtime π - What a binary node holds when one operand is a scalar: the operation, its scalar operand and the layout of the side it is broadcast over.
- InputId
- Which of an executionβs inputs a callerβs chunk belongs to.
- Input
Slot π - The caller-owned state of one input leaf.
- Instant
Runtime π - What an instant node holds: the chunks of the one series it is selecting, until that series ends.
- Live
Execution π - MapRuntime π
- What a map node applies.
- Merge
Input π - The input a
RuntimeOp::Windowor aRuntimeOp::Mergecollects until its input ends. - Native
Execution State - State for one execution of a bound tree. The live tree and input slots are dropped together when the executor finishes or fails; the public state remains available for inspection.
- Native
Executor - Drives one execution of a bound tree.
- Node
Buffer π - What every node holds: its metric handles and the bytes it reserves.
- Node
State π - State shared by the stateful operators.
- Open
Series π - The series whose first chunk this buffer received and whose closing chunk it has not seen.
- Parameterized
MapRuntime π - What a map with scalar parameters holds: its function and output layout, and each parameterβs value once it has arrived.
- Retained
Input π - An input a node reads whole before it computes β one operand of a binary node, or the input of a vector operation β chunk by chunk, until it ends.
- Runtime
Node π - A runtime operator and its directly owned children and metrics.
- Source
Facts - What a fused execution knows about the labels its inputs hand over.
- Vector
Runtime π - What a vector node holds: its whole input until it ends.
EnumsΒ§
- Broadcast
Op π - The operation a scalar broadcast applies, with the side the constant sits on already resolved.
- Broadcast
Scalar π - The scalar side of a broadcast.
- Leaf
Kind π - The kind of chunk an input leaf is bound to.
- Native
Chunk π - A chunk on an internal edge.
- Pair
Kernel π - The kernel a
BinaryRuntimeruns over its two assembled operands. - Phase π
- Whether the execution can still produce chunks.
- Reader π
- The node a
RetainedInputbelongs to, which its messages name; formatted only when one is. - Runtime
Op π
ConstantsΒ§
- BUFFER_
HEADER_ πBYTES - An allowance for the shared header an Arrow buffer or a label list is allocated behind.
- HISTOGRAM_
ROW_ πHEADER_ BYTES - The bytes a histogram table row takes before its bucket lists: the schema, zero threshold, sum, count, zero count, reset hint and start timestamp, the narrow columns counted at the width of the widest, and one offset per list column β custom bounds, two span columns and one bucket column per side.
- NATIVE_
STACK_ πGROWTH - Stack a growth adds when the reserve above is spent. It holds several levels of the same walk.
- NATIVE_
STACK_ πRED_ ZONE - Stack one
RuntimeNode::buildorRuntimeNode::pulllevel needs below it before the recursion grows its stack.
FunctionsΒ§
- assembly_
bytes π - The bytes a result of
fieldsfields oversegmentssegments is assembled from, beside its values: the descriptor lists and the label set rebuilt frommetric. - broadcast_
op π - The operation a binary nodeβs
matchingdescribes. - broadcast_
runtime π - The broadcast a binary node with one scalar operand is, read off its binding.
- buffer_
bytes π - The bytes of the whole allocation
bufferis a slice of: the capacity is what a slice keeps alive. - buffered_
fields π - The buffered chunks as one axis: per field, the chunksβ samples in arrival order.
- buffered_
time π - The buffered chunks as the one source axis they make up.
- built_
series_ πworkspace_ bytes - An upper bound of what a kernel that pushes a subset of the rows of
seriesinto aGridSeriesBuilderallocates:built_workspace_bytesover the seriesβ rows and runs, and the resultβs assembly (assembly_bytes), one segment per field. - built_
workspace_ πbytes - An upper bound of the bytes a
GridSeriesBuilderallocates for a result offieldsfloat fields whose positions are a subset ofrowspositions making uprunsruns. - chunk_
bytes_ πbeside_ samples - The bytes one chunk holds beside its samples: its axis, the runs that axis is made of, one descriptor per segment and its labels.
- ensure_
grid π - Checks that an evaluated series lies on the grid its consumer is bound to.
- evaluated_
bytes π - The bytes an evaluated chunk holds: its struct and the Arrow buffers behind its fields.
- evaluated_
values π - The values an evaluated chunk hands over, or the timestamps a raw source hands over.
- field_
segments π - The fields of one chunk, one dense segment at a time.
- grid_
chunk_ πbytes - The bytes one value per point of
gridtakes in a chunk of its own, reserved before it exists. - grid_
end_ πms - The last timestamp of
spec, which is inclusive: itslenpoints step from its start. - grid_
position π - The position of the grid point at
timestamp, which the selection reported as one of its own. - histogram_
bytes π - The bytes the histogram table holds for one row of
view: its scalar columns, the offset each bucket list pays for it, and the values those lists hold. - histogram_
row_ πbytes - The bytes the builderβs table holds for one row of the field,
Nonefor a field of floats: the largest row, since any row can be the one every decided point picks. - invalid_
binary_ πoperand - A binary operation was asked to read an operand other than its two inputs.
- last_
sample_ πms - The time of the last sample a chunk carries, on its own timeline.
- last_
series_ πms - The time of the last row
seriescarries. - map_
chunk π - Maps one chunk with
ops, keeping its axis and its closing. - map_
workspace_ πbytes - An upper bound of what the operations of a map allocate for the series they write over
series. - mapped_
workspace_ πbytes - An upper bound of what a kernel that maps each dense segment of
seriesinto a new array of its length allocates: float math over a series of floats, and arithmetic against a constant, which also rebuilds a histogram field sample by sample. - matched_
scalar π - The rejection of a scalar broadcast whose matching is not the one a constant can take.
- merge_
workspace_ πbytes - A rough workspace estimate for merging fragments that hold
rowsrows between them. - metric_
bytes π - The bytes a metric name holds: its name and each tagβs name and value, one row per label.
- missing_
row π - The error for a source row the selection named but the series does not hold.
- no_
input π - The rejection of a chunk routed to an input the execution does not have: an id past the last leaf names no leaf at all.
- no_
labels π - The error for a series an instant selection has no labels to report it under.
- no_
live_ πexecution - A running executor must own its live state.
- no_
row_ πchunk - A closing chunk carrying
metricand no row at all. - no_
row_ πseries - A series carrying
metricand no row at all. - no_
window π - The error for a node asked to evaluate a window without its evaluator.
- operand_
chunk_ πbytes - The bytes one chunk a binary operand retains holds on its own.
- raw_
bytes π - The bytes a raw chunk holds: its identity, its timestamps and the Arrow buffers behind its fields.
- reservation_
overflow π - The error for a reservation the platform cannot express: the sum of the retained operands and the kernelβs live workspace does not fit an address space.
- sample_
slice_ πbytes - The bytes the samples of one seriesβ fields take as the slices they are.
- scalar_
chunk π - One unlabelled constant value per statement grid point, closed on its only chunk.
- scalar_
chunk_ πon scalar_chunkunderschema, which names the one field.- scalar_
schema π - The layout of a scalarβs value carrier: one field on
grid. - series_
changed π - The error for a chunk of another series arriving while one is being selected.
- series_
error π - side_
name π - What side
indexis called in an error. - truncated_
input π - The rejection of an input that ended without the chunk closing its series.
- unbilled_
array_ πbuffers - Adds the allocation a sample arrayβs values live in, and the one its validity bitmap lives in,
to
freshandbytes, skipping the onesbilledholds and the ones already reported. - unbilled_
buffer π - Adds the allocation
bufferis a slice of tofreshandbytes, once. - unbilled_
sample_ πbuffers - The Arrow allocations
seriesβ samples live in thatbilleddoes not hold yet, and the bytes they hold. - unbilled_
tables π - The histogram tables
seriesis the first to reference, and the bytes they hold. - unsupported_
binary π - The rejection of a binary node whose operands are neither two evaluated vectors nor one evaluated vector and one constant.
- valid_
values π - The valid values a chunk holds: one per valid field sample.
- vector_
overflow π - The error for a vector operation whose reservation does not fit an address space.
- vector_
series_ πwith_ k - vector_
workspace_ πbytes - A rough estimate of what the vector operation
opallocates overseries, beside the input it reads. - window_
workspace_ πbytes - An upper bound of what
windowβs next push allocates for the rows it hands out, for input whose last sample is atlast_ts, closing its series whenlast, withfields, of the seriesmetricnames. - workspace_
overflow π