Skip to main content

Module execute

Module execute 

Source
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Β§

BinaryRuntime πŸ”’
What a binary or set node holds: both operands until they end.
BroadcastRuntime πŸ”’
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.
InputSlot πŸ”’
The caller-owned state of one input leaf.
InstantRuntime πŸ”’
What an instant node holds: the chunks of the one series it is selecting, until that series ends.
LiveExecution πŸ”’
MapRuntime πŸ”’
What a map node applies.
MergeInput πŸ”’
The input a RuntimeOp::Window or a RuntimeOp::Merge collects until its input ends.
NativeExecutionState
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.
NativeExecutor
Drives one execution of a bound tree.
NodeBuffer πŸ”’
What every node holds: its metric handles and the bytes it reserves.
NodeState πŸ”’
State shared by the stateful operators.
OpenSeries πŸ”’
The series whose first chunk this buffer received and whose closing chunk it has not seen.
ParameterizedMapRuntime πŸ”’
What a map with scalar parameters holds: its function and output layout, and each parameter’s value once it has arrived.
RetainedInput πŸ”’
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.
RuntimeNode πŸ”’
A runtime operator and its directly owned children and metrics.
SourceFacts
What a fused execution knows about the labels its inputs hand over.
VectorRuntime πŸ”’
What a vector node holds: its whole input until it ends.

EnumsΒ§

BroadcastOp πŸ”’
The operation a scalar broadcast applies, with the side the constant sits on already resolved.
BroadcastScalar πŸ”’
The scalar side of a broadcast.
LeafKind πŸ”’
The kind of chunk an input leaf is bound to.
NativeChunk πŸ”’
A chunk on an internal edge.
PairKernel πŸ”’
The kernel a BinaryRuntime runs over its two assembled operands.
Phase πŸ”’
Whether the execution can still produce chunks.
Reader πŸ”’
The node a RetainedInput belongs to, which its messages name; formatted only when one is.
RuntimeOp πŸ”’

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::build or RuntimeNode::pull level needs below it before the recursion grows its stack.

FunctionsΒ§

assembly_bytes πŸ”’
The bytes a result of fields fields over segments segments is assembled from, beside its values: the descriptor lists and the label set rebuilt from metric.
broadcast_op πŸ”’
The operation a binary node’s matching describes.
broadcast_runtime πŸ”’
The broadcast a binary node with one scalar operand is, read off its binding.
buffer_bytes πŸ”’
The bytes of the whole allocation buffer is 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 series into a GridSeriesBuilder allocates: built_workspace_bytes over 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 GridSeriesBuilder allocates for a result of fields float fields whose positions are a subset of rows positions making up runs runs.
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 grid takes in a chunk of its own, reserved before it exists.
grid_end_ms πŸ”’
The last timestamp of spec, which is inclusive: its len points 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, None for 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 series carries.
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 series into 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 rows rows 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 metric and no row at all.
no_row_series πŸ”’
A series carrying metric and 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_chunk under schema, 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 index is 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 fresh and bytes, skipping the ones billed holds and the ones already reported.
unbilled_buffer πŸ”’
Adds the allocation buffer is a slice of to fresh and bytes, once.
unbilled_sample_buffers πŸ”’
The Arrow allocations series’ samples live in that billed does not hold yet, and the bytes they hold.
unbilled_tables πŸ”’
The histogram tables series is 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 op allocates over series, 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 at last_ts, closing its series when last, with fields, of the series metric names.
workspace_overflow πŸ”’