mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-12-04 08:25:29 +00:00
50 lines
28 KiB
HTML
50 lines
28 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="Vector–vector binary and set operations over evaluated series on one grid."><title>promql::vector_match - 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 vector_match</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 vector_<wbr>match</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><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate promql</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></div><h1>Module <span>vector_<wbr>match</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/vector_match.rs.html#15-2709">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Vector–vector binary and set operations over evaluated series on one grid.</p>
|
||
<p>Semantics follow Prometheus <code>VectorBinop</code>, <code>VectorAnd</code>, <code>VectorOr</code> and <code>VectorUnless</code> at every
|
||
grid point. Cardinality rules are checked per point: series sharing a match group conflict only
|
||
where both are present. Each field is matched on its own; the results of all fields with one
|
||
label set form one series.</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.BinaryMatching.html" title="struct promql::vector_match::BinaryMatching">Binary<wbr>Matching</a></dt><dd>A vector–vector binary operation with its modifiers.</dd><dt><a class="struct" href="struct.Budget.html" title="struct promql::vector_match::Budget">Budget</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Turns the allocations of a binary, set or <code>info</code> operation into the total live workspace the
|
||
caller’s <code>reserve</code> admits, charged at allocation boundaries rather than per value:</dd><dt><a class="struct" href="struct.Duplicate.html" title="struct promql::vector_match::Duplicate">Duplicate</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Two rows of one result label set at one point.</dd><dt><a class="struct" href="struct.DuplicateCandidate.html" title="struct promql::vector_match::DuplicateCandidate">Duplicate<wbr>Candidate</a></dt><dd>The best duplicate candidate retained for one grid point.</dd><dt><a class="struct" href="struct.DuplicateEvidence.html" title="struct promql::vector_match::DuplicateEvidence">Duplicate<wbr>Evidence</a></dt><dd>A per-node, per-field reduction of duplicate evidence across output partitions.</dd><dt><a class="struct" href="struct.DuplicateSlot.html" title="struct promql::vector_match::DuplicateSlot">Duplicate<wbr>Slot</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="struct" href="struct.FieldEvidence.html" title="struct promql::vector_match::FieldEvidence">Field<wbr>Evidence</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="struct" href="struct.FieldMetadata.html" title="struct promql::vector_match::FieldMetadata">Field<wbr>Metadata</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The byte figures one field’s phases are charged from, read once from its operands.</dd><dt><a class="struct" href="struct.FillValues.html" title="struct promql::vector_match::FillValues">Fill<wbr>Values</a></dt><dd>The values of <code>fill</code>, <code>fill_left</code> and <code>fill_right</code>, which stand in for a sample that has no
|
||
match on the other side: <code>lhs</code> for a missing left-hand sample and <code>rhs</code> for a missing
|
||
right-hand one, as the query writes them, <code>group_right</code> included (prometheus/prometheus#19939).</dd><dt><a class="struct" href="struct.NodeEvidence.html" title="struct promql::vector_match::NodeEvidence">Node<wbr>Evidence</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The plan node and its shared duplicate-match evidence, for a binary operator that reports it.</dd><dt><a class="struct" href="struct.Operand.html" title="struct promql::vector_match::Operand">Operand</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>One field of one side’s series, with verified grid axes. Axes may skip positions, so every
|
||
accessor goes through the axis rather than assuming a contiguous range.</dd><dt><a class="struct" href="struct.Pairs.html" title="struct promql::vector_match::Pairs">Pairs</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The match state of one field. Results live outside it, so an open <a href="enum.RowSlot.html" title="enum promql::vector_match::RowSlot"><code>RowSlot</code></a> can borrow them
|
||
while this is mutated.</dd><dt><a class="struct" href="struct.ResultRows.html" title="struct promql::vector_match::ResultRows">Result<wbr>Rows</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Rows in arrival order: their points, the match group each came from, and their values;
|
||
<code>None</code> is a match the operator filtered.</dd><dt><a class="struct" href="struct.ResultTotals.html" title="struct promql::vector_match::ResultTotals">Result<wbr>Totals</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Counts of filed rows, kept values, histograms and their heap bytes, updated as rows are filed so
|
||
the sort and merge phases can be charged without walking them.</dd><dt><a class="struct" href="struct.Results.html" title="struct promql::vector_match::Results">Results</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The result rows of one field by result label set.</dd><dt><a class="struct" href="struct.SetFieldMetadata.html" title="struct promql::vector_match::SetFieldMetadata">SetField<wbr>Metadata</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The byte figures one set field’s phases are charged from, read once from its operands.</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.BinaryKind.html" title="enum promql::vector_match::BinaryKind">Binary<wbr>Kind</a></dt><dd>What a <a href="enum.BinaryOp.html" title="enum promql::vector_match::BinaryOp"><code>BinaryOp</code></a> computes: arithmetic over two values or a comparison of them.</dd><dt><a class="enum" href="enum.BinaryOp.html" title="enum promql::vector_match::BinaryOp">Binary<wbr>Op</a></dt><dd>A PromQL binary operator between two instant vectors.</dd><dt><a class="enum" href="enum.Cardinality.html" title="enum promql::vector_match::Cardinality">Cardinality</a></dt><dd>How many series of each side may share a match group.</dd><dt><a class="enum" href="enum.MatchingLabels.html" title="enum promql::vector_match::MatchingLabels">Matching<wbr>Labels</a></dt><dd>The labels two series are matched by.</dd><dt><a class="enum" href="enum.RowSlot.html" title="enum promql::vector_match::RowSlot">RowSlot</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>One pairing’s result rows, looked up (and charged, if new) on the first filed point only, so
|
||
later points build no key and a pairing that files nothing costs nothing.</dd><dt><a class="enum" href="enum.SetOp.html" title="enum promql::vector_match::SetOp">SetOp</a></dt><dd>A PromQL set operator between two instant vectors.</dd></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.ERROR_TEXT_BYTES.html" title="constant promql::vector_match::ERROR_TEXT_BYTES">ERROR_<wbr>TEXT_<wbr>BYTES</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The fixed text of one error message, around the label set it renders.</dd><dt><a class="constant" href="constant.GROUP_SLOT_BYTES.html" title="constant promql::vector_match::GROUP_SLOT_BYTES">GROUP_<wbr>SLOT_<wbr>BYTES</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>One entry of a match-group table, doubled for control bytes and spare capacity.</dd><dt><a class="constant" href="constant.HISTOGRAM_ROW_BYTES.html" title="constant promql::vector_match::HISTOGRAM_ROW_BYTES">HISTOGRAM_<wbr>ROW_<wbr>BYTES</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>One row of the builder’s histogram table: the scalar columns and the seven list offsets.</dd><dt><a class="constant" href="constant.KEY_LABEL_BYTES.html" title="constant promql::vector_match::KEY_LABEL_BYTES">KEY_<wbr>LABEL_<wbr>BYTES</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>One label of a match key, doubled for <code>Vec</code> growth slack.</dd><dt><a class="constant" href="constant.MATCHING_NAME_BYTES.html" title="constant promql::vector_match::MATCHING_NAME_BYTES">MATCHING_<wbr>NAME_<wbr>BYTES</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>One name of <a href="enum.MatchingLabels.html" title="enum promql::vector_match::MatchingLabels"><code>MatchingLabels</code></a> in the exact-size reference vector <code>result_metric</code> collects.</dd><dt><a class="constant" href="constant.MATCH_SLOT_BYTES.html" title="constant promql::vector_match::MATCH_SLOT_BYTES">MATCH_<wbr>SLOT_<wbr>BYTES</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>One entry of the one-to-one match set, doubled likewise.</dd><dt><a class="constant" href="constant.MERGE_SLOT_BYTES.html" title="constant promql::vector_match::MERGE_SLOT_BYTES">MERGE_<wbr>SLOT_<wbr>BYTES</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>One row of the merge’s table, doubled for spare capacity.</dd><dt><a class="constant" href="constant.RESULT_ROW_BYTES.html" title="constant promql::vector_match::RESULT_ROW_BYTES">RESULT_<wbr>ROW_<wbr>BYTES</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>One row of a field’s results: one slot each of the point, group and value vectors, which grow
|
||
together.</dd><dt><a class="constant" href="constant.RESULT_SLOT_BYTES.html" title="constant promql::vector_match::RESULT_SLOT_BYTES">RESULT_<wbr>SLOT_<wbr>BYTES</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>One entry of a field’s result table, doubled likewise.</dd><dt><a class="constant" href="constant.SORT_ROW_BYTES.html" title="constant promql::vector_match::SORT_ROW_BYTES">SORT_<wbr>ROW_<wbr>BYTES</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>One row while an unsorted label set is sorted: old and new copies of its point, group and value
|
||
slots, plus the order vector.</dd><dt><a class="constant" href="constant.VEC_MIN_CAPACITY.html" title="constant promql::vector_match::VEC_MIN_CAPACITY">VEC_<wbr>MIN_<wbr>CAPACITY</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The smallest non-zero capacity assumed when estimating the next growth of a <code>Vec</code>, or of the
|
||
one-to-one <code>HashSet</code> whose growth this approximates.</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.binary_field.html" title="fn promql::vector_match::binary_field">binary_<wbr>field</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Matches one field of each side, collecting the first failure of each kind as
|
||
<code>(point, rank, message)</code>. Its tables are a phase the caller ends after the call; only the
|
||
appended messages and filed rows stay live.</dd><dt><a class="fn" href="fn.binary_output_schema.html" title="fn promql::vector_match::binary_output_schema">binary_<wbr>output_<wbr>schema</a></dt><dd>The schema of <code>binary_vectors</code> output: fields paired by position, named after the left side.</dd><dt><a class="fn" href="fn.binary_vectors.html" title="fn promql::vector_match::binary_vectors">binary_<wbr>vectors</a></dt><dd>Applies <code>matching</code> to every pair of matched series at every grid point.</dd><dt><a class="fn" href="fn.binary_vectors_inner.html" title="fn promql::vector_match::binary_vectors_inner">binary_<wbr>vectors_<wbr>inner</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The binary kernel, with or without a budget.</dd><dt><a class="fn" href="fn.binary_vectors_with_reservation.html" title="fn promql::vector_match::binary_vectors_with_reservation">binary_<wbr>vectors_<wbr>with_<wbr>reservation</a><span title="Restricted Visibility"> 🔒</span> </dt><dd><a href="fn.binary_vectors.html" title="fn promql::vector_match::binary_vectors"><code>binary_vectors</code></a>, reporting its total live workspace to <code>reserve</code> at the granularities
|
||
<a href="struct.Budget.html" title="struct promql::vector_match::Budget"><code>Budget</code></a> describes, never per point or row. A refusal fails the operation with that error;
|
||
releasing what was admitted is the caller’s job.</dd><dt><a class="fn" href="fn.candidate_owned_bytes.html" title="fn promql::vector_match::candidate_owned_bytes">candidate_<wbr>owned_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.copied_bytes.html" title="fn promql::vector_match::copied_bytes">copied_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The label text <code>result_metric</code> copies from the one side: name and value of each included label.</dd><dt><a class="fn" href="fn.duplicate_message.html" title="fn promql::vector_match::duplicate_message">duplicate_<wbr>message</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.earliest_error.html" title="fn promql::vector_match::earliest_error">earliest_<wbr>error</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.elem_binop.html" title="fn promql::vector_match::elem_binop">elem_<wbr>binop</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Prometheus <code>vectorElemBinop</code> over present samples: the value and whether to keep it, or
|
||
<code>None</code> when Prometheus reports the pair as an annotation and skips it without counting the
|
||
match: an operator the sample types do not support, or an addition or subtraction of
|
||
histograms that mix exponential and custom buckets or whose counter reset hints contradict.</dd><dt><a class="fn" href="fn.field_metadata_bytes.html" title="fn promql::vector_match::field_metadata_bytes">field_<wbr>metadata_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Computes <a href="struct.FieldMetadata.html" title="struct promql::vector_match::FieldMetadata"><code>FieldMetadata</code></a>. The duplicate scan’s list is charged separately by <a href="fn.overlap.html" title="fn promql::vector_match::overlap"><code>overlap</code></a>. The
|
||
pairing figure comes from the widest series of each side, since each pairing’s scratch replaces
|
||
the previous one.</dd><dt><a class="fn" href="fn.group.html" title="fn promql::vector_match::group">group</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Groups the series of <code>operand</code> by their match group.</dd><dt><a class="fn" href="fn.group_key.html" title="fn promql::vector_match::group_key">group_<wbr>key</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.group_presence.html" title="fn promql::vector_match::group_presence">group_<wbr>presence</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The points at which each match group of <code>operand</code> holds a sample, one bit per grid point, so a
|
||
kept sample needs one lookup however many filter series share its group.</dd><dt><a class="fn" href="fn.histogram_phase_bytes.html" title="fn promql::vector_match::histogram_phase_bytes">histogram_<wbr>phase_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The peak bytes of one histogram row, bounded by the widest histogram of each side: an owned
|
||
copy of each operand, the bucket union <code>+</code>/<code>-</code> grow (doubled for reallocation), the custom
|
||
bounds, and the boxed result.</dd><dt><a class="fn" href="fn.key_of.html" title="fn promql::vector_match::key_of">key_of</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.label_text_bytes.html" title="fn promql::vector_match::label_text_bytes">label_<wbr>text_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The bytes <code>render</code> writes for a label set built from <code>metric</code>.</dd><dt><a class="fn" href="fn.match_key_bytes.html" title="fn promql::vector_match::match_key_bytes">match_<wbr>key_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The bytes one match key holds: its label pairs and, for <code>on(...)</code>, a copy of each value;
|
||
<code>ignoring(...)</code> keys share the label’s <code>Arc</code>.</dd><dt><a class="fn" href="fn.merge_bytes.html" title="fn promql::vector_match::merge_bytes">merge_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The bytes the merge of every field’s results allocates, apart from the builder’s columns, which
|
||
<a href="fn.merge_fields.html" title="fn promql::vector_match::merge_fields"><code>merge_fields</code></a> reserves in blocks. Counts kept values and filed label sets only; a filtered
|
||
pair costs its label set but no row.</dd><dt><a class="fn" href="fn.merge_fields.html" title="fn promql::vector_match::merge_fields">merge_<wbr>fields</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Joins the per-field results into series with all fields, by label set. The merge phase is
|
||
admitted here, before either merge path allocates; columns are then reserved once per series.</dd><dt><a class="fn" href="fn.merge_multi_field.html" title="fn promql::vector_match::merge_multi_field">merge_<wbr>multi_<wbr>field</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Groups <code>(point, field, value)</code> triples by label set, sorts them, and writes one row per point.</dd><dt><a class="fn" href="fn.merge_series_columns.html" title="fn promql::vector_match::merge_series_columns">merge_<wbr>series_<wbr>columns</a><span title="Restricted Visibility"> 🔒</span> </dt><dd><a href="fn.merge_series_columns_of.html" title="fn promql::vector_match::merge_series_columns_of"><code>merge_series_columns_of</code></a> over sorted triples.</dd><dt><a class="fn" href="fn.merge_series_columns_of.html" title="fn promql::vector_match::merge_series_columns_of">merge_<wbr>series_<wbr>columns_<wbr>of</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The bytes one result series’ columns take, for sorted <code>points</code>: per distinct point, every
|
||
field’s value and validity (doubled for capacity) and histogram index column. Counting index
|
||
columns for every field over-reserves rather than missing one.</dd><dt><a class="fn" href="fn.merge_single_field.html" title="fn promql::vector_match::merge_single_field">merge_<wbr>single_<wbr>field</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The single-field merge: each label set’s rows are already sorted and unique per point (the
|
||
field’s sort errors otherwise), so they are written out directly. Filtered samples write no row,
|
||
and charges match <a href="fn.merge_multi_field.html" title="fn promql::vector_match::merge_multi_field"><code>merge_multi_field</code></a>. Series order is unspecified in both.</dd><dt><a class="fn" href="fn.metric_of.html" title="fn promql::vector_match::metric_of">metric_<wbr>of</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The labels Prometheus gives a fill sample: the match group of the sample it pairs with.</dd><dt><a class="fn" href="fn.output_bytes.html" title="fn promql::vector_match::output_bytes">output_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Bytes of the per-field result tables and the output schema.</dd><dt><a class="fn" href="fn.overlap.html" title="fn promql::vector_match::overlap">overlap</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Reports every point where two or more <code>members</code> are present. Its point list is a phase on top
|
||
of <code>base</code>, reset to <code>base</code> when the scan ends.</dd><dt><a class="fn" href="fn.owned_histogram_bytes.html" title="fn promql::vector_match::owned_histogram_bytes">owned_<wbr>histogram_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The bytes one owned copy of a histogram view holds, inline and on the heap.</dd><dt><a class="fn" href="fn.pair_bytes.html" title="fn promql::vector_match::pair_bytes">pair_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The scratch one pairing allocates before it files a row: the result label set <code>result_metric</code>
|
||
builds (the old list alive beside two copies of the new one), the copied <code>group_*</code> labels, the
|
||
matching-name vector, and the row key. Paid even when the axes share no position, because the
|
||
label set is built before the axes are intersected.</dd><dt><a class="fn" href="fn.render.html" title="fn promql::vector_match::render">render</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.result_histogram_bytes.html" title="fn promql::vector_match::result_histogram_bytes">result_<wbr>histogram_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The bytes one boxed histogram value holds, inline and on the heap.</dd><dt><a class="fn" href="fn.result_key_bytes.html" title="fn promql::vector_match::result_key_bytes">result_<wbr>key_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The key <code>key_of</code> files a result label set under, including the copied name string.</dd><dt><a class="fn" href="fn.result_metric.html" title="fn promql::vector_match::result_metric">result_<wbr>metric</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.result_set_bytes.html" title="fn promql::vector_match::result_set_bytes">result_<wbr>set_<wbr>bytes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The bytes one result label set keeps once a row is filed under it: labels, copied strings, key
|
||
and result-table entry.</dd><dt><a class="fn" href="fn.same_grid.html" title="fn promql::vector_match::same_grid">same_<wbr>grid</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.same_labelset.html" title="fn promql::vector_match::same_labelset">same_<wbr>labelset</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.set_field.html" title="fn promql::vector_match::set_field">set_<wbr>field</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Filters one field of the kept side by the presence of its match group on the filter side, and
|
||
appends the first point where two kept rows share a label set as <code>(point, rank, message)</code>.</dd><dt><a class="fn" href="fn.set_field_metadata.html" title="fn promql::vector_match::set_field_metadata">set_<wbr>field_<wbr>metadata</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.set_vectors.html" title="fn promql::vector_match::set_vectors">set_<wbr>vectors</a></dt><dd>Applies a set operator at every grid point. Series keep their labels and values; fields are
|
||
paired by position.</dd><dt><a class="fn" href="fn.set_vectors_inner.html" title="fn promql::vector_match::set_vectors_inner">set_<wbr>vectors_<wbr>inner</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.set_vectors_with_reservation.html" title="fn promql::vector_match::set_vectors_with_reservation">set_<wbr>vectors_<wbr>with_<wbr>reservation</a><span title="Restricted Visibility"> 🔒</span> </dt><dd><a href="fn.set_vectors.html" title="fn promql::vector_match::set_vectors"><code>set_vectors</code></a>, reporting its live workspace to <code>reserve</code> as
|
||
<a href="fn.binary_vectors_with_reservation.html" title="fn promql::vector_match::binary_vectors_with_reservation"><code>binary_vectors_with_reservation</code></a> does.</dd><dt><a class="fn" href="fn.unsupported_histogram_arithmetic.html" title="fn promql::vector_match::unsupported_histogram_arithmetic">unsupported_<wbr>histogram_<wbr>arithmetic</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The operator symbol when <code>op</code> has no histogram form for these operand types, for the legacy
|
||
dropped-sample info. Supported operations declined for other reasons (incompatible bucket
|
||
layouts) return <code>None</code>.</dd><dt><a class="fn" href="fn.validate_binary_operand.html" title="fn promql::vector_match::validate_binary_operand">validate_<wbr>binary_<wbr>operand</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Validates one operand of <a href="fn.binary_vectors.html" title="fn promql::vector_match::binary_vectors"><code>binary_vectors</code></a>: every series must sit on the schema’s grid, carry
|
||
the schema’s fields, and hold one sample per axis row. [<code>Series</code>] fields are public, so a series
|
||
can disagree with its schema.</dd><dt><a class="fn" href="fn.widest_metric.html" title="fn promql::vector_match::widest_metric">widest_<wbr>metric</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The series of <code>operand</code> with the most labels.</dd></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.GroupKey.html" title="type promql::vector_match::GroupKey">Group<wbr>Key</a></dt><dd>Label pairs identifying a match group or a result; empty values are absent, as in
|
||
Prometheus.</dd></dl></section></div></main></body></html> |