mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-30 22:54:12 +00:00
61 lines
33 KiB
HTML
61 lines
33 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Running a bound tree, node by node."><title>promql::native::execute - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-1ed95124.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="promql" data-themes="" data-resource-suffix="" data-rustdoc-version="1.98.1 (48a229cea 2026-09-01)" data-channel="1.98.1" data-search-js="search-9944d736.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../../../static.files/storage-41dd4d93.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-417ebf0a.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-f7c3ffd8.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module execute</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../promql/index.html">promql</a><span class="version">1.4.0-alpha.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module execute</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In promql::<wbr>native</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">promql</a>::<wbr><a href="../index.html">native</a></div><h1>Module <span>execute</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/promql/native/execute.rs.html#15-5723">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Running a bound tree, node by node.</p>
|
||
<p>Each execution owns a recursive runtime tree; the compiled <a href="../plan/struct.NativeTree.html" title="struct promql::native::plan::NativeTree"><code>NativeTree</code></a> 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.</p>
|
||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.BinaryRuntime.html" title="struct promql::native::execute::BinaryRuntime">Binary<wbr>Runtime</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>A binary, set or <code>info</code> node: retains both operands until they end, then assembles their logical
|
||
series and runs the kernel once.</dd><dt><a class="struct" href="struct.BroadcastRuntime.html" title="struct promql::native::execute::BroadcastRuntime">Broadcast<wbr>Runtime</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>A binary node with one scalar operand. Unlike <a href="struct.BinaryRuntime.html" title="struct promql::native::execute::BinaryRuntime"><code>BinaryRuntime</code></a> it applies to each vector chunk
|
||
as it arrives and retains nothing.</dd><dt><a class="struct" href="struct.InputId.html" title="struct promql::native::execute::InputId">InputId</a></dt><dd>Which of an execution’s inputs a caller’s chunk belongs to: the leaf’s position counted left to
|
||
right. Meaningful only within one tree.</dd><dt><a class="struct" href="struct.InputSlot.html" title="struct promql::native::execute::InputSlot">Input<wbr>Slot</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The caller-owned state of one input leaf.</dd><dt><a class="struct" href="struct.InstantRuntime.html" title="struct promql::native::execute::InstantRuntime">Instant<wbr>Runtime</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>An instant selection. <a href="../../instant_eval/fn.select_instants.html" title="fn promql::instant_eval::select_instants"><code>select_instants</code></a> takes a complete source axis, so this buffers each
|
||
series until its last chunk and emits one chunk for it.</dd><dt><a class="struct" href="struct.LiveExecution.html" title="struct promql::native::execute::LiveExecution">Live<wbr>Execution</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="struct" href="struct.MapRuntime.html" title="struct promql::native::execute::MapRuntime">MapRuntime</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>What a map node applies.</dd><dt><a class="struct" href="struct.MergeInput.html" title="struct promql::native::execute::MergeInput">Merge<wbr>Input</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The input a <a href="enum.RuntimeOp.html#variant.Window" title="variant promql::native::execute::RuntimeOp::Window"><code>RuntimeOp::Window</code></a> or a <a href="enum.RuntimeOp.html#variant.Merge" title="variant promql::native::execute::RuntimeOp::Merge"><code>RuntimeOp::Merge</code></a> collects until its input ends, then
|
||
merges into one series per label set (<a href="../../grid_series/fn.merge_same_labelset.html" title="fn promql::grid_series::merge_same_labelset"><code>crate::grid_series::merge_same_labelset</code></a>).</dd><dt><a class="struct" href="struct.NativeExecutionState.html" title="struct promql::native::execute::NativeExecutionState">Native<wbr>Execution<wbr>State</a></dt><dd>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.</dd><dt><a class="struct" href="struct.NativeExecutor.html" title="struct promql::native::execute::NativeExecutor">Native<wbr>Executor</a></dt><dd>Drives one execution of a bound tree: the caller pushes source chunks, pulls output, and ends
|
||
the input with <a href="struct.NativeExecutor.html#method.end_of_input" title="method promql::native::execute::NativeExecutor::end_of_input"><code>Self::end_of_input</code></a> or <a href="struct.NativeExecutor.html#method.finish" title="method promql::native::execute::NativeExecutor::finish"><code>Self::finish</code></a>. Streaming nodes (windows, maps,
|
||
broadcasts) answer as input arrives; collecting windows and whole-input nodes answer only after
|
||
the input ends.</dd><dt><a class="struct" href="struct.NodeBuffer.html" title="struct promql::native::execute::NodeBuffer">Node<wbr>Buffer</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>A node’s metric handles and its memory reservation in the query’s pool.</dd><dt><a class="struct" href="struct.NodeState.html" title="struct promql::native::execute::NodeState">Node<wbr>State</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>State shared by the stateful operators. The queue precedes the buffer so it drops before its
|
||
reservation.</dd><dt><a class="struct" href="struct.OpenSeries.html" title="struct promql::native::execute::OpenSeries">Open<wbr>Series</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The series whose first chunk this buffer received and whose closing chunk it has not seen.</dd><dt><a class="struct" href="struct.ParameterizedMapRuntime.html" title="struct promql::native::execute::ParameterizedMapRuntime">Parameterized<wbr>MapRuntime</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>A map with scalar parameters (<code>round</code>, <code>clamp</code>, <code>max_of</code>, …), holding each parameter once it
|
||
arrives.</dd><dt><a class="struct" href="struct.RetainedInput.html" title="struct promql::native::execute::RetainedInput">Retained<wbr>Input</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>An input a node reads whole before it computes (a binary operand, or the input of a vector
|
||
operation). Chunks are assembled into one series per logical series once the input ends.</dd><dt><a class="struct" href="struct.RuntimeNode.html" title="struct promql::native::execute::RuntimeNode">Runtime<wbr>Node</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>A runtime operator and its directly owned children and metrics.</dd><dt><a class="struct" href="struct.SourceFacts.html" title="struct promql::native::execute::SourceFacts">Source<wbr>Facts</a></dt><dd>Input label sets and metric names used to decide when series must be merged.</dd><dt><a class="struct" href="struct.VectorRuntime.html" title="struct promql::native::execute::VectorRuntime">Vector<wbr>Runtime</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>A vector operation (<code>topk</code>, <code>limitk</code>, …): its answer at a point depends on every series there,
|
||
so it retains the whole input and runs the kernel once.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.BroadcastOp.html" title="enum promql::native::execute::BroadcastOp">Broadcast<wbr>Op</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The operation a scalar broadcast applies, with the side the constant sits on already resolved.</dd><dt><a class="enum" href="enum.BroadcastScalar.html" title="enum promql::native::execute::BroadcastScalar">Broadcast<wbr>Scalar</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The scalar side of a broadcast.</dd><dt><a class="enum" href="enum.ChildRole.html" title="enum promql::native::execute::ChildRole">Child<wbr>Role</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The edge from a <a href="struct.RuntimeNode.html" title="struct promql::native::execute::RuntimeNode"><code>RuntimeNode</code></a> to a child; names the child’s metrics.</dd><dt><a class="enum" href="enum.LeafKind.html" title="enum promql::native::execute::LeafKind">Leaf<wbr>Kind</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The kind of chunk an input leaf is bound to, and so the only kind it accepts.</dd><dt><a class="enum" href="enum.NativeChunk.html" title="enum promql::native::execute::NativeChunk">Native<wbr>Chunk</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>A chunk on an internal edge.</dd><dt><a class="enum" href="enum.PairKernel.html" title="enum promql::native::execute::PairKernel">Pair<wbr>Kernel</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The kernel a <a href="struct.BinaryRuntime.html" title="struct promql::native::execute::BinaryRuntime"><code>BinaryRuntime</code></a> runs over its two assembled operands.</dd><dt><a class="enum" href="enum.Phase.html" title="enum promql::native::execute::Phase">Phase</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Whether the execution can still produce chunks.</dd><dt><a class="enum" href="enum.Reader.html" title="enum promql::native::execute::Reader">Reader</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The owner of a <a href="struct.RetainedInput.html" title="struct promql::native::execute::RetainedInput"><code>RetainedInput</code></a>, named in its errors.</dd><dt><a class="enum" href="enum.RuntimeOp.html" title="enum promql::native::execute::RuntimeOp">Runtime<wbr>Op</a><span title="Restricted Visibility"> 🔒</span> </dt></dl><h2 id="constants" class="section-header">Constants<a href="#constants" class="anchor">§</a></h2><dl class="item-table"><dt><a class="constant" href="constant.BUFFER_HEADER_BYTES.html" title="constant promql::native::execute::BUFFER_HEADER_BYTES">BUFFER_<wbr>HEADER_<wbr>BYTES</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>An allowance for the shared header an Arrow buffer or a label list is allocated behind.</dd><dt><a class="constant" href="constant.HISTOGRAM_ROW_HEADER_BYTES.html" title="constant promql::native::execute::HISTOGRAM_ROW_HEADER_BYTES">HISTOGRAM_<wbr>ROW_<wbr>HEADER_<wbr>BYTES</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>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.</dd><dt><a class="constant" href="constant.NATIVE_STACK_GROWTH.html" title="constant promql::native::execute::NATIVE_STACK_GROWTH">NATIVE_<wbr>STACK_<wbr>GROWTH</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Stack added per growth; holds several levels.</dd><dt><a class="constant" href="constant.NATIVE_STACK_RED_ZONE.html" title="constant promql::native::execute::NATIVE_STACK_RED_ZONE">NATIVE_<wbr>STACK_<wbr>RED_<wbr>ZONE</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Remaining stack below which <a href="struct.RuntimeNode.html#method.build" title="associated function promql::native::execute::RuntimeNode::build"><code>RuntimeNode::build</code></a> and <a href="struct.RuntimeNode.html#method.pull" title="method promql::native::execute::RuntimeNode::pull"><code>RuntimeNode::pull</code></a> grow it. Both
|
||
recurse once per tree level with large debug-build frames (about 140 KiB and 80 KiB, measured on
|
||
a 100-term chain), and the tree has no depth limit, so an 8 MiB worker stack can overflow.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.assembly_bytes.html" title="fn promql::native::execute::assembly_bytes">assembly_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The bytes a result of <code>fields</code> fields over <code>segments</code> segments is assembled from, beside its
|
||
values: the descriptor lists (a growing list holds at most <code>2 * n + 4</code> entries) and the label
|
||
set rebuilt from <code>metric</code>.</dd><dt><a class="fn" href="fn.broadcast_op.html" title="fn promql::native::execute::broadcast_op">broadcast_<wbr>op</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The operation a binary node’s <code>matching</code> describes; <code>bool</code> on arithmetic is refused.</dd><dt><a class="fn" href="fn.broadcast_runtime.html" title="fn promql::native::execute::broadcast_runtime">broadcast_<wbr>runtime</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The broadcast runtime of a binary node with a scalar operand: over the vector, or for two
|
||
scalars over the varying one. A constant is read from its node’s binding; a dynamic scalar
|
||
from its node’s chunk.</dd><dt><a class="fn" href="fn.buffer_bytes.html" title="fn promql::native::execute::buffer_bytes">buffer_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The bytes of the whole allocation <code>buffer</code> is a slice of: the capacity is what a slice keeps
|
||
alive.</dd><dt><a class="fn" href="fn.buffered_fields.html" title="fn promql::native::execute::buffered_fields">buffered_<wbr>fields</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The buffered chunks’ fields, each chaining its chunks’ samples without copying.</dd><dt><a class="fn" href="fn.buffered_time.html" title="fn promql::native::execute::buffered_time">buffered_<wbr>time</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The buffered chunks as the one source axis they make up.</dd><dt><a class="fn" href="fn.built_series_workspace_bytes.html" title="fn promql::native::execute::built_series_workspace_bytes">built_<wbr>series_<wbr>workspace_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>An upper bound of what a kernel that pushes a subset of the rows of <code>series</code> into a
|
||
<a href="../../grid_series/struct.GridSeriesBuilder.html" title="struct promql::grid_series::GridSeriesBuilder"><code>GridSeriesBuilder</code></a> allocates: <a href="fn.built_workspace_bytes.html" title="fn promql::native::execute::built_workspace_bytes"><code>built_workspace_bytes</code></a> over the series’ rows and runs, and
|
||
the result’s assembly (<a href="fn.assembly_bytes.html" title="fn promql::native::execute::assembly_bytes"><code>assembly_bytes</code></a>), one segment per field.</dd><dt><a class="fn" href="fn.built_workspace_bytes.html" title="fn promql::native::execute::built_workspace_bytes">built_<wbr>workspace_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>An upper bound of the bytes a <a href="../../grid_series/struct.GridSeriesBuilder.html" title="struct promql::grid_series::GridSeriesBuilder"><code>GridSeriesBuilder</code></a> allocates for a result of <code>fields</code> float
|
||
fields whose positions are a subset of <code>rows</code> positions in <code>runs</code> runs.</dd><dt><a class="fn" href="fn.chunk_bytes_beside_samples.html" title="fn promql::native::execute::chunk_bytes_beside_samples">chunk_<wbr>bytes_<wbr>beside_<wbr>samples</a><span title="Restricted Visibility"> 🔒</span> </dt><dd><a href="../../grid_series/fn.series_bytes.html" title="fn promql::grid_series::series_bytes"><code>series_bytes</code></a> without the sample buffers and without the <code>Series</code> struct: its axis, segment
|
||
descriptors and labels. For a retainer that bills buffers through <a href="fn.unbilled_sample_buffers.html" title="fn promql::native::execute::unbilled_sample_buffers"><code>unbilled_sample_buffers</code></a>
|
||
and counts the struct in its own container.</dd><dt><a class="fn" href="fn.ensure_grid.html" title="fn promql::native::execute::ensure_grid">ensure_<wbr>grid</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Checks that an evaluated series lies on the grid its consumer is bound to.</dd><dt><a class="fn" href="fn.evaluated_bytes.html" title="fn promql::native::execute::evaluated_bytes">evaluated_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The bytes an evaluated chunk holds: its struct and the Arrow buffers behind its fields, but not
|
||
the shared grid.</dd><dt><a class="fn" href="fn.evaluated_values.html" title="fn promql::native::execute::evaluated_values">evaluated_<wbr>values</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The output-values metric for a chunk: valid values, or positions for raw and state chunks.</dd><dt><a class="fn" href="fn.field_segments.html" title="fn promql::native::execute::field_segments">field_<wbr>segments</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The dense segments of every field of one chunk. A merged field has several, and asking it for a
|
||
single dense view answers <code>None</code>.</dd><dt><a class="fn" href="fn.grid_chunk_bytes.html" title="fn promql::native::execute::grid_chunk_bytes">grid_<wbr>chunk_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The bytes one value per point of <code>grid</code> takes in a chunk of its own, reserved before it exists.</dd><dt><a class="fn" href="fn.grid_end_ms.html" title="fn promql::native::execute::grid_end_ms">grid_<wbr>end_<wbr>ms</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The last (inclusive) timestamp of <code>spec</code>. [<code>GridSpec::try_new</code>] guarantees it fits <code>i64</code>.</dd><dt><a class="fn" href="fn.grid_position.html" title="fn promql::native::execute::grid_position">grid_<wbr>position</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The grid position of <code>timestamp</code>. A timestamp off the grid is an internal disagreement, so it
|
||
is an error rather than skipped.</dd><dt><a class="fn" href="fn.histogram_bytes.html" title="fn promql::native::execute::histogram_bytes">histogram_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The bytes the histogram table holds for one row of <code>view</code>: its scalar columns, the offset each
|
||
bucket list pays for it, and the values those lists hold.</dd><dt><a class="fn" href="fn.histogram_row_bytes.html" title="fn promql::native::execute::histogram_row_bytes">histogram_<wbr>row_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The bytes of the field’s largest histogram row in the builder’s table, <code>None</code> for a float
|
||
field.</dd><dt><a class="fn" href="fn.invalid_binary_operand.html" title="fn promql::native::execute::invalid_binary_operand">invalid_<wbr>binary_<wbr>operand</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>A binary operation was asked to read an operand other than its two inputs.</dd><dt><a class="fn" href="fn.last_sample_ms.html" title="fn promql::native::execute::last_sample_ms">last_<wbr>sample_<wbr>ms</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The time of the last sample a chunk carries, on its own timeline.</dd><dt><a class="fn" href="fn.last_series_ms.html" title="fn promql::native::execute::last_series_ms">last_<wbr>series_<wbr>ms</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The time of the last row <code>series</code> carries.</dd><dt><a class="fn" href="fn.map_chunk.html" title="fn promql::native::execute::map_chunk">map_<wbr>chunk</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Maps one chunk with <code>ops</code>, keeping its closing. <code>None</code> means every position was emptied and
|
||
the chunk does not close its series; a closing chunk is always returned, possibly with no rows.
|
||
<code>admit</code> reserves the bytes a label rewrite writes before it runs.</dd><dt><a class="fn" href="fn.map_workspace_bytes.html" title="fn promql::native::execute::map_workspace_bytes">map_<wbr>workspace_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>An upper bound of what a chain of map operations allocates over <code>series</code>. Each operation’s
|
||
output lives until the next one is written, so the bound is the largest sum of two consecutive
|
||
workspaces. Sizing every operation from <code>series</code> relies on each one writing floats only, at no
|
||
more rows than it read.</dd><dt><a class="fn" href="fn.mapped_workspace_bytes.html" title="fn promql::native::execute::mapped_workspace_bytes">mapped_<wbr>workspace_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>An upper bound of what a kernel that maps each dense segment of <code>series</code> into a new array of
|
||
equal length allocates. A histogram row is charged at the field’s largest payload, plus a buffer
|
||
header and 64-byte alignment per segment.</dd><dt><a class="fn" href="fn.matched_scalar.html" title="fn promql::native::execute::matched_scalar">matched_<wbr>scalar</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The error for a vector-scalar operation carrying vector-matching modifiers.</dd><dt><a class="fn" href="fn.merge_workspace_bytes.html" title="fn promql::native::execute::merge_workspace_bytes">merge_<wbr>workspace_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>A rough workspace estimate for merging fragments that hold <code>rows</code> rows between them. Values
|
||
and histogram tables stay shared with the fragments and are not counted.</dd><dt><a class="fn" href="fn.metric_bytes.html" title="fn promql::native::execute::metric_bytes">metric_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The bytes a metric name holds: its name and each tag’s name and value, one row per label.</dd><dt><a class="fn" href="fn.missing_row.html" title="fn promql::native::execute::missing_row">missing_<wbr>row</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The error for a source row the selection named but the series does not hold.</dd><dt><a class="fn" href="fn.no_input.html" title="fn promql::native::execute::no_input">no_<wbr>input</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The error for a chunk routed to an input the execution does not have.</dd><dt><a class="fn" href="fn.no_labels.html" title="fn promql::native::execute::no_labels">no_<wbr>labels</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The error for a series an instant selection has no labels to report it under.</dd><dt><a class="fn" href="fn.no_live_execution.html" title="fn promql::native::execute::no_live_execution">no_<wbr>live_<wbr>execution</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.no_row_chunk.html" title="fn promql::native::execute::no_row_chunk">no_<wbr>row_<wbr>chunk</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>A closing chunk carrying <code>metric</code> and no rows.</dd><dt><a class="fn" href="fn.no_row_series.html" title="fn promql::native::execute::no_row_series">no_<wbr>row_<wbr>series</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>A series carrying <code>metric</code> and no rows, placed after <code>series</code>’ last position.</dd><dt><a class="fn" href="fn.no_window.html" title="fn promql::native::execute::no_window">no_<wbr>window</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The error for a node asked to evaluate a window without its evaluator.</dd><dt><a class="fn" href="fn.operand_chunk_bytes.html" title="fn promql::native::execute::operand_chunk_bytes">operand_<wbr>chunk_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The bytes one chunk retained by a binary operand holds: <a href="fn.chunk_bytes_beside_samples.html" title="fn promql::native::execute::chunk_bytes_beside_samples"><code>chunk_bytes_beside_samples</code></a> plus the
|
||
<code>Series</code> struct plus the rows its sample slices cover, so a series split into many slices of one
|
||
buffer is not billed that buffer per chunk. Histogram tables are excluded; the operand bills
|
||
each once through <a href="fn.unbilled_tables.html" title="fn promql::native::execute::unbilled_tables"><code>unbilled_tables</code></a>.</dd><dt><a class="fn" href="fn.raw_bytes.html" title="fn promql::native::execute::raw_bytes">raw_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The bytes a raw chunk holds: its identity, its timestamps and the Arrow buffers behind its
|
||
fields.</dd><dt><a class="fn" href="fn.reservation_overflow.html" title="fn promql::native::execute::reservation_overflow">reservation_<wbr>overflow</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The error for a reservation that overflows <code>usize</code>.</dd><dt><a class="fn" href="fn.sample_slice_bytes.html" title="fn promql::native::execute::sample_slice_bytes">sample_<wbr>slice_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The bytes the sample slices of one series cover, by rows: floats per value, histograms per
|
||
index.</dd><dt><a class="fn" href="fn.scalar_chunk.html" title="fn promql::native::execute::scalar_chunk">scalar_<wbr>chunk</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>One unlabelled constant value per statement grid point, closed on its only chunk.</dd><dt><a class="fn" href="fn.scalar_chunk_on.html" title="fn promql::native::execute::scalar_chunk_on">scalar_<wbr>chunk_<wbr>on</a><span title="Restricted Visibility"> 🔒</span> </dt><dd><a href="fn.scalar_chunk.html" title="fn promql::native::execute::scalar_chunk"><code>scalar_chunk</code></a> under <code>schema</code>, which names the one field.</dd><dt><a class="fn" href="fn.scalar_schema.html" title="fn promql::native::execute::scalar_schema">scalar_<wbr>schema</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The layout of a scalar’s value carrier: one field on <code>grid</code>.</dd><dt><a class="fn" href="fn.series_changed.html" title="fn promql::native::execute::series_changed">series_<wbr>changed</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The error for a chunk of another series arriving while one is being selected.</dd><dt><a class="fn" href="fn.series_error.html" title="fn promql::native::execute::series_error">series_<wbr>error</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.side_name.html" title="fn promql::native::execute::side_name">side_<wbr>name</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.truncated_input.html" title="fn promql::native::execute::truncated_input">truncated_<wbr>input</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The error for an input that ended without the chunk closing its series.</dd><dt><a class="fn" href="fn.unbilled_array_buffers.html" title="fn promql::native::execute::unbilled_array_buffers">unbilled_<wbr>array_<wbr>buffers</a><span title="Restricted Visibility"> 🔒</span> </dt><dd><a href="fn.unbilled_buffer.html" title="fn promql::native::execute::unbilled_buffer"><code>unbilled_buffer</code></a> for a sample array’s values and validity bitmap.</dd><dt><a class="fn" href="fn.unbilled_buffer.html" title="fn promql::native::execute::unbilled_buffer">unbilled_<wbr>buffer</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Adds the allocation <code>buffer</code> is a slice of to <code>fresh</code> and <code>bytes</code>, once.</dd><dt><a class="fn" href="fn.unbilled_sample_buffers.html" title="fn promql::native::execute::unbilled_sample_buffers">unbilled_<wbr>sample_<wbr>buffers</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The Arrow allocations (values and validity bitmaps) <code>series</code>’ samples live in that neither
|
||
<code>billed</code> nor this chunk has already listed, with their bytes: full capacity plus one identity
|
||
slot each. A retained slice keeps its whole allocation resident, so it is billed in full, once.</dd><dt><a class="fn" href="fn.unbilled_tables.html" title="fn promql::native::execute::unbilled_tables">unbilled_<wbr>tables</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The histogram tables <code>series</code> references that neither <code>billed</code> nor this chunk has already
|
||
listed, with their <a href="../../grid_series/fn.table_bytes.html" title="fn promql::grid_series::table_bytes"><code>table_bytes</code></a> plus one identity slot each. The identity is the <code>Arc</code>’s
|
||
address, unique while the retained chunk keeps the table alive. The caller adds the identities
|
||
to <code>billed</code> after retaining the chunk.</dd><dt><a class="fn" href="fn.unsupported_binary.html" title="fn promql::native::execute::unsupported_binary">unsupported_<wbr>binary</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The error for a binary node whose operands are neither two evaluated vectors nor a vector and a
|
||
scalar; <code>operands</code> describes what arrived.</dd><dt><a class="fn" href="fn.valid_values.html" title="fn promql::native::execute::valid_values">valid_<wbr>values</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The valid values a chunk holds: one per valid field sample.</dd><dt><a class="fn" href="fn.vector_overflow.html" title="fn promql::native::execute::vector_overflow">vector_<wbr>overflow</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The error for a vector operation whose reservation does not fit an address space.</dd><dt><a class="fn" href="fn.vector_series_with_k.html" title="fn promql::native::execute::vector_series_with_k">vector_<wbr>series_<wbr>with_<wbr>k</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.vector_workspace_bytes.html" title="fn promql::native::execute::vector_workspace_bytes">vector_<wbr>workspace_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>A rough estimate of what the vector operation <code>op</code> allocates over <code>series</code>, beside the input it
|
||
reads: ranking candidates and copied histograms, sort keys and float rebuilds, <code>absent</code>‘s
|
||
per-point flags, <code>count_values</code>’ per-sample groups, and the histogram functions’ merge and
|
||
per-row buckets.</dd><dt><a class="fn" href="fn.window_workspace_bytes.html" title="fn promql::native::execute::window_workspace_bytes">window_<wbr>workspace_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>An upper bound of what <code>window</code>’s next push allocates for its output rows, given the input’s
|
||
last sample time <code>last_ts</code> and whether it closes the series.</dd><dt><a class="fn" href="fn.workspace_overflow.html" title="fn promql::native::execute::workspace_overflow">workspace_<wbr>overflow</a><span title="Restricted Visibility"> 🔒</span> </dt></dl></section></div></main></body></html> |