mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-30 22:54:12 +00:00
40 lines
14 KiB
HTML
40 lines
14 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="A stream of raw series chunks with stable schema, label binding, and ordering."><title>RawSeriesStream in store_api::region_engine - 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="store_api" 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 trait"><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="#">RawSeriesStream</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../store_api/index.html">store_<wbr>api</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="#">RawSeries<wbr>Stream</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.label_source" title="label_source">label_source</a></li><li><a href="#tymethod.ordering" title="ordering">ordering</a></li><li><a href="#tymethod.schema" title="schema">schema</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.label_decode_spec" title="label_decode_spec">label_decode_spec</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In store_<wbr>api::<wbr>region_<wbr>engine</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">store_api</a>::<wbr><a href="index.html">region_engine</a></div><h1>Trait <span class="trait">RawSeries<wbr>Stream</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/store_api/region_engine.rs.html#603-631">Source</a> </span></div><pre class="rust item-decl"><code>pub trait RawSeriesStream: Stream<Item = <a class="enum" href="https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><RawSeriesChunk, BoxedError>> + <a class="trait" href="https://doc.rust-lang.org/1.98.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> {
|
||
// Required methods
|
||
fn <a href="#tymethod.schema" class="fn">schema</a>(&self) -> &<a class="struct" href="https://doc.rust-lang.org/1.98.1/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><SeriesSchema> <a href="#" class="tooltip" data-notable-ty="&Arc<SeriesSchema>">ⓘ</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.label_source" class="fn">label_source</a>(&self) -> &<a class="enum" href="enum.RawLabelSource.html" title="enum store_api::region_engine::RawLabelSource">RawLabelSource</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.ordering" class="fn">ordering</a>(&self) -> SeriesOrdering;
|
||
|
||
// Provided method
|
||
fn <a href="#method.label_decode_spec" class="fn">label_decode_spec</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&LabelDecodeSpec> { ... }
|
||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A stream of raw series chunks with stable schema, label binding, and ordering.</p>
|
||
<p>Every series has strictly increasing timestamps within and across chunks; timestamps are
|
||
unique per series. <code>Interleaved</code> permits a series to resume after another series; <code>Contiguous</code>
|
||
and <code>KeyThenTime</code> guarantee each series’ chunks are contiguous. <code>KeyThenTime</code> uses the complete
|
||
stream identity compatible with its label binding, not just a TSID or hash. These are
|
||
per-stream guarantees, not query-global order, partition ownership, or finality. <code>is_last</code>
|
||
marks the last chunk of that series in this stream only; merging requires recomputing
|
||
per-input-series finalization across all related inputs, not aggregate-group finality.
|
||
Label interpretation is carried by the stream: <a href="trait.RawSeriesStream.html#tymethod.label_source" title="method store_api::region_engine::RawSeriesStream::label_source"><code>RawSeriesStream::label_source</code></a> states the
|
||
scan-bound identity a producer read under, and <a href="trait.RawSeriesStream.html#method.label_decode_spec" title="method store_api::region_engine::RawSeriesStream::label_decode_spec"><code>RawSeriesStream::label_decode_spec</code></a> states the
|
||
label layout the stream’s own chunks declare. Stream finality applies to all related input
|
||
series, not aggregate groups or vector-match state.</p>
|
||
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.schema" class="method"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#605">Source</a><h4 class="code-header">fn <a href="#tymethod.schema" class="fn">schema</a>(&self) -> &<a class="struct" href="https://doc.rust-lang.org/1.98.1/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><SeriesSchema> <a href="#" class="tooltip" data-notable-ty="&Arc<SeriesSchema>">ⓘ</a></h4></section></summary><div class="docblock"><p>Returns the schema shared by all chunks; raw schemas have no evaluation grid.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.label_source" class="method"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#615">Source</a><h4 class="code-header">fn <a href="#tymethod.label_source" class="fn">label_source</a>(&self) -> &<a class="enum" href="enum.RawLabelSource.html" title="enum store_api::region_engine::RawLabelSource">RawLabelSource</a></h4></section></summary><div class="docblock"><p>Returns scan-bound label metadata. The binding does not dictate representation:
|
||
chunks with a decode specification leave <code>metric</code> as <code>None</code>; otherwise they
|
||
supply the complete explicit label set. The metric name itself may be absent.</p>
|
||
<p>A stream that was decoded from a raw frame has no scan-bound identity and reports
|
||
<a href="constant.NO_BOUND_LABEL_SOURCE.html" title="constant store_api::region_engine::NO_BOUND_LABEL_SOURCE"><code>NO_BOUND_LABEL_SOURCE</code></a>, which reads as <code>Explicit</code> while its chunks may still carry no
|
||
labels at all. That value therefore answers “is this the region I read under”, never “are
|
||
these labels complete”: <a href="trait.RawSeriesStream.html#method.label_decode_spec" title="method store_api::region_engine::RawSeriesStream::label_decode_spec"><code>Self::label_decode_spec</code></a> is the stream’s statement about its
|
||
encoding, and every consumer that decides whether to decode reads that instead.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.ordering" class="method"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#630">Source</a><h4 class="code-header">fn <a href="#tymethod.ordering" class="fn">ordering</a>(&self) -> SeriesOrdering</h4></section></summary><div class="docblock"><p>Returns this stream’s ordering guarantee.</p>
|
||
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.label_decode_spec" class="method"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#626-628">Source</a><h4 class="code-header">fn <a href="#method.label_decode_spec" class="fn">label_decode_spec</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&LabelDecodeSpec></h4></section></summary><div class="docblock"><p>Returns the label decode description this stream declares for key-encoded labels.</p>
|
||
<p>Every stream whose chunks carry key-encoded labels declares the description here, whether
|
||
it is a storage producer or a stream reassembled from a raw frame. A consumer holding only
|
||
that description can therefore decode labels without a scan-bound <a href="enum.RawLabelSource.html" title="enum store_api::region_engine::RawLabelSource"><code>RawLabelSource</code></a>: the
|
||
description, not the binding, describes the encoding, and a receiver reporting
|
||
<a href="constant.NO_BOUND_LABEL_SOURCE.html" title="constant store_api::region_engine::NO_BOUND_LABEL_SOURCE"><code>NO_BOUND_LABEL_SOURCE</code></a> still states through this description that its chunks are
|
||
undecoded key chunks. A stream that carries complete labels instead answers <code>None</code>. This is
|
||
the description the stream declares, not an authenticated statement about where the values
|
||
came from.</p>
|
||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait <b>is</b> <a href="https://doc.rust-lang.org/1.98.1/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety".</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../trait.impl/store_api/region_engine/trait.RawSeriesStream.js" async></script><script type="text/json" id="notable-traits-data">{"&Arc<SeriesSchema>":"<h3>Notable traits for <code><a class=\"struct\" href=\"https://doc.rust-lang.org/1.98.1/alloc/sync/struct.Arc.html\" title=\"struct alloc::sync::Arc\">Arc</a><R></code></h3><pre><code><div class=\"where\">impl<R> <a class=\"trait\" href=\"https://doc.rust-lang.org/1.98.1/std/io/trait.Read.html\" title=\"trait std::io::Read\">Read</a> for <a class=\"struct\" href=\"https://doc.rust-lang.org/1.98.1/alloc/sync/struct.Arc.html\" title=\"struct alloc::sync::Arc\">Arc</a><R><div class=\"where\">where\n R: <a class=\"trait\" href=\"https://doc.rust-lang.org/1.98.1/std/io/trait.Read.html\" title=\"trait std::io::Read\">Read</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.98.1/std/io/trait.IoHandle.html\" title=\"trait std::io::IoHandle\">IoHandle</a> + ?<a class=\"trait\" href=\"https://doc.rust-lang.org/1.98.1/core/marker/trait.Sized.html\" title=\"trait core::marker::Sized\">Sized</a>,\n <a class=\"primitive\" href=\"https://doc.rust-lang.org/1.98.1/std/primitive.reference.html\">&'a R</a>: for<'a> <a class=\"trait\" href=\"https://doc.rust-lang.org/1.98.1/std/io/trait.Read.html\" title=\"trait std::io::Read\">Read</a>,</div></div><div class=\"where\">impl<W> <a class=\"trait\" href=\"https://doc.rust-lang.org/1.98.1/std/io/trait.Write.html\" title=\"trait std::io::Write\">Write</a> for <a class=\"struct\" href=\"https://doc.rust-lang.org/1.98.1/alloc/sync/struct.Arc.html\" title=\"struct alloc::sync::Arc\">Arc</a><W><div class=\"where\">where\n W: <a class=\"trait\" href=\"https://doc.rust-lang.org/1.98.1/std/io/trait.Write.html\" title=\"trait std::io::Write\">Write</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.98.1/std/io/trait.IoHandle.html\" title=\"trait std::io::IoHandle\">IoHandle</a> + ?<a class=\"trait\" href=\"https://doc.rust-lang.org/1.98.1/core/marker/trait.Sized.html\" title=\"trait core::marker::Sized\">Sized</a>,\n <a class=\"primitive\" href=\"https://doc.rust-lang.org/1.98.1/std/primitive.reference.html\">&'a W</a>: for<'a> <a class=\"trait\" href=\"https://doc.rust-lang.org/1.98.1/std/io/trait.Write.html\" title=\"trait std::io::Write\">Write</a>,</div></div>"}</script></section></div></main></body></html> |