Files
greptimedb/store_api/region_engine/trait.RegionScanner.html
T

132 lines
30 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!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 scanner that provides a way to scan the region concurrently."><title>RegionScanner 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="#">RegionScanner</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="#">Region<wbr>Scanner</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.add_dyn_filter_to_predicate" title="add_dyn_filter_to_predicate">add_dyn_filter_to_predicate</a></li><li><a href="#tymethod.has_predicate_without_region" title="has_predicate_without_region">has_predicate_without_region</a></li><li><a href="#tymethod.metadata" title="metadata">metadata</a></li><li><a href="#tymethod.name" title="name">name</a></li><li><a href="#tymethod.prepare" title="prepare">prepare</a></li><li><a href="#tymethod.properties" title="properties">properties</a></li><li><a href="#tymethod.scan_partition" title="scan_partition">scan_partition</a></li><li><a href="#tymethod.schema" title="schema">schema</a></li><li><a href="#tymethod.set_logical_region" title="set_logical_region">set_logical_region</a></li><li><a href="#tymethod.set_query_load_region_id" title="set_query_load_region_id">set_query_load_region_id</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.prepare_series" title="prepare_series">prepare_series</a></li><li><a href="#method.raw_series_has_explicit_labels" title="raw_series_has_explicit_labels">raw_series_has_explicit_labels</a></li><li><a href="#method.raw_series_ordering" title="raw_series_ordering">raw_series_ordering</a></li><li><a href="#method.raw_series_schema" title="raw_series_schema">raw_series_schema</a></li><li><a href="#method.reset_state" title="reset_state">reset_state</a></li><li><a href="#method.scan_series_partition" title="scan_series_partition">scan_series_partition</a></li><li><a href="#method.snapshot_sequence" title="snapshot_sequence">snapshot_sequence</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">Region<wbr>Scanner</span>&nbsp;<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#648-783">Source</a> </span></div><pre class="rust item-decl"><code>pub trait RegionScanner:
<a class="trait" href="https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>
+ DisplayAs
+ <a class="trait" href="https://doc.rust-lang.org/1.98.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> {
<details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 17 methods</span></summary> // Required methods
fn <a href="#tymethod.name" class="fn">name</a>(&amp;self) -&gt; &amp;<a class="primitive" href="https://doc.rust-lang.org/1.98.1/std/primitive.str.html">str</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.properties" class="fn">properties</a>(&amp;self) -&gt; &amp;<a class="struct" href="struct.ScannerProperties.html" title="struct store_api::region_engine::ScannerProperties">ScannerProperties</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.schema" class="fn">schema</a>(&amp;self) -&gt; <a class="type" href="../storage/type.SchemaRef.html" title="type store_api::storage::SchemaRef">SchemaRef</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.metadata" class="fn">metadata</a>(&amp;self) -&gt; <a class="type" href="../metadata/type.RegionMetadataRef.html" title="type store_api::metadata::RegionMetadataRef">RegionMetadataRef</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.prepare" class="fn">prepare</a>(&amp;mut self, request: <a class="struct" href="struct.PrepareRequest.html" title="struct store_api::region_engine::PrepareRequest">PrepareRequest</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.98.1/std/primitive.unit.html">()</a>, BoxedError&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.scan_partition" class="fn">scan_partition</a>(
&amp;self,
ctx: &amp;<a class="struct" href="struct.QueryScanContext.html" title="struct store_api::region_engine::QueryScanContext">QueryScanContext</a>,
metrics_set: &amp;ExecutionPlanMetricsSet,
partition: <a class="primitive" href="https://doc.rust-lang.org/1.98.1/std/primitive.usize.html">usize</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="type" href="../../common_recordbatch/type.SendableRecordBatchStream.html" title="type common_recordbatch::SendableRecordBatchStream">SendableRecordBatchStream</a>, BoxedError&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.has_predicate_without_region" class="fn">has_predicate_without_region</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.98.1/std/primitive.bool.html">bool</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.add_dyn_filter_to_predicate" class="fn">add_dyn_filter_to_predicate</a>(
&amp;mut self,
filter_exprs: <a class="struct" href="https://doc.rust-lang.org/1.98.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.98.1/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;dyn PhysicalExpr&gt;&gt;,
) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.98.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.98.1/std/primitive.bool.html">bool</a>&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.set_logical_region" class="fn">set_logical_region</a>(&amp;mut self, logical_region: <a class="primitive" href="https://doc.rust-lang.org/1.98.1/std/primitive.bool.html">bool</a>);
<span class="item-spacer"></span> fn <a href="#tymethod.set_query_load_region_id" class="fn">set_query_load_region_id</a>(&amp;mut self, region_id: <a class="struct" href="../storage/struct.RegionId.html" title="struct store_api::storage::RegionId">RegionId</a>);
// Provided methods
fn <a href="#method.raw_series_schema" class="fn">raw_series_schema</a>(
&amp;self,
_label_source: &amp;<a class="enum" href="enum.RawLabelSource.html" title="enum store_api::region_engine::RawLabelSource">RawLabelSource</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.98.1/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;SeriesSchema&gt;&gt;, BoxedError&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.raw_series_has_explicit_labels" class="fn">raw_series_has_explicit_labels</a>(
&amp;self,
_labels: &amp;<a class="enum" href="enum.RawLabelSource.html" title="enum store_api::region_engine::RawLabelSource">RawLabelSource</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.98.1/std/primitive.bool.html">bool</a>, BoxedError&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.raw_series_ordering" class="fn">raw_series_ordering</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;SeriesOrdering, BoxedError&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.scan_series_partition" class="fn">scan_series_partition</a>(
&amp;self,
_ctx: &amp;<a class="struct" href="struct.QueryScanContext.html" title="struct store_api::region_engine::QueryScanContext">QueryScanContext</a>,
_metrics_set: &amp;ExecutionPlanMetricsSet,
_partition: <a class="primitive" href="https://doc.rust-lang.org/1.98.1/std/primitive.usize.html">usize</a>,
_label_source: &amp;<a class="enum" href="enum.RawLabelSource.html" title="enum store_api::region_engine::RawLabelSource">RawLabelSource</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="type" href="type.SendableRawSeriesStream.html" title="type store_api::region_engine::SendableRawSeriesStream">SendableRawSeriesStream</a>&gt;, BoxedError&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.prepare_series" class="fn">prepare_series</a>(
&amp;self,
_ctx: &amp;<a class="struct" href="struct.QueryScanContext.html" title="struct store_api::region_engine::QueryScanContext">QueryScanContext</a>,
_metrics_set: &amp;ExecutionPlanMetricsSet,
_label_source: &amp;<a class="enum" href="enum.RawLabelSource.html" title="enum store_api::region_engine::RawLabelSource">RawLabelSource</a>,
) -&gt; BoxFuture&lt;'static, <a class="enum" href="https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.98.1/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;dyn <a class="trait" href="trait.PreparedSeriesSource.html" title="trait store_api::region_engine::PreparedSeriesSource">PreparedSeriesSource</a>&gt;&gt;, BoxedError&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.reset_state" class="fn">reset_state</a>(&amp;mut self) { ... }
<span class="item-spacer"></span> fn <a href="#method.snapshot_sequence" class="fn">snapshot_sequence</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="type" href="../storage/type.SequenceNumber.html" title="type store_api::storage::SequenceNumber">SequenceNumber</a>&gt; { ... }
</details>}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A scanner that provides a way to scan the region concurrently.</p>
<p>The scanner splits the region into partitions so that each partition can be scanned concurrently.
You can use this trait to implement an <a href="datafusion_physical_plan::ExecutionPlan"><code>ExecutionPlan</code></a>.</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.name" class="method"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#649">Source</a><h4 class="code-header">fn <a href="#tymethod.name" class="fn">name</a>(&amp;self) -&gt; &amp;<a class="primitive" href="https://doc.rust-lang.org/1.98.1/std/primitive.str.html">str</a></h4></section><details class="toggle method-toggle" open><summary><section id="tymethod.properties" class="method"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#652">Source</a><h4 class="code-header">fn <a href="#tymethod.properties" class="fn">properties</a>(&amp;self) -&gt; &amp;<a class="struct" href="struct.ScannerProperties.html" title="struct store_api::region_engine::ScannerProperties">ScannerProperties</a></h4></section></summary><div class="docblock"><p>Returns the properties of the scanner.</p>
</div></details><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#655">Source</a><h4 class="code-header">fn <a href="#tymethod.schema" class="fn">schema</a>(&amp;self) -&gt; <a class="type" href="../storage/type.SchemaRef.html" title="type store_api::storage::SchemaRef">SchemaRef</a></h4></section></summary><div class="docblock"><p>Returns the schema of the record batches.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.metadata" class="method"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#658">Source</a><h4 class="code-header">fn <a href="#tymethod.metadata" class="fn">metadata</a>(&amp;self) -&gt; <a class="type" href="../metadata/type.RegionMetadataRef.html" title="type store_api::metadata::RegionMetadataRef">RegionMetadataRef</a></h4></section></summary><div class="docblock"><p>Returns the metadata of the region.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.prepare" class="method"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#663">Source</a><h4 class="code-header">fn <a href="#tymethod.prepare" class="fn">prepare</a>(&amp;mut self, request: <a class="struct" href="struct.PrepareRequest.html" title="struct store_api::region_engine::PrepareRequest">PrepareRequest</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.98.1/std/primitive.unit.html">()</a>, BoxedError&gt;</h4></section></summary><div class="docblock"><p>Prepares the scanner with the given partition ranges.</p>
<p>This method is for the planner to adjust the scanner’s behavior based on the partition ranges.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.scan_partition" class="method"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#669-674">Source</a><h4 class="code-header">fn <a href="#tymethod.scan_partition" class="fn">scan_partition</a>(
&amp;self,
ctx: &amp;<a class="struct" href="struct.QueryScanContext.html" title="struct store_api::region_engine::QueryScanContext">QueryScanContext</a>,
metrics_set: &amp;ExecutionPlanMetricsSet,
partition: <a class="primitive" href="https://doc.rust-lang.org/1.98.1/std/primitive.usize.html">usize</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="type" href="../../common_recordbatch/type.SendableRecordBatchStream.html" title="type common_recordbatch::SendableRecordBatchStream">SendableRecordBatchStream</a>, BoxedError&gt;</h4></section></summary><div class="docblock"><p>Scans the partition and returns a stream of record batches.</p>
<h5 id="panics"><a class="doc-anchor" href="#panics">§</a>Panics</h5>
<p>Panics if the <code>partition</code> is out of bound.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.has_predicate_without_region" class="method"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#754">Source</a><h4 class="code-header">fn <a href="#tymethod.has_predicate_without_region" class="fn">has_predicate_without_region</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.98.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Check if there is any predicate exclude region partition exprs that may be executed in this scanner.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.add_dyn_filter_to_predicate" class="method"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#760-763">Source</a><h4 class="code-header">fn <a href="#tymethod.add_dyn_filter_to_predicate" class="fn">add_dyn_filter_to_predicate</a>(
&amp;mut self,
filter_exprs: <a class="struct" href="https://doc.rust-lang.org/1.98.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.98.1/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;dyn PhysicalExpr&gt;&gt;,
) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.98.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.98.1/std/primitive.bool.html">bool</a>&gt;</h4></section></summary><div class="docblock"><p>Add the given dynamic filter expressions to the predicate of the scanner.
Returns a vector of booleans indicating which filter expressions were applied.
true indicates the filter expression was applied(will be use by scanner to prune by stat for row group),
false otherwise.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.set_logical_region" class="method"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#775">Source</a><h4 class="code-header">fn <a href="#tymethod.set_logical_region" class="fn">set_logical_region</a>(&amp;mut self, logical_region: <a class="primitive" href="https://doc.rust-lang.org/1.98.1/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Sets whether the scanner reads one logical metric region, including a
physical metric region constrained by a table-ID filter.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.set_query_load_region_id" class="method"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#778">Source</a><h4 class="code-header">fn <a href="#tymethod.set_query_load_region_id" class="fn">set_query_load_region_id</a>(&amp;mut self, region_id: <a class="struct" href="../storage/struct.RegionId.html" title="struct store_api::storage::RegionId">RegionId</a>)</h4></section></summary><div class="docblock"><p>Sets the region id that should receive query-load metrics.</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.raw_series_schema" class="method"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#684-689">Source</a><h4 class="code-header">fn <a href="#method.raw_series_schema" class="fn">raw_series_schema</a>(
&amp;self,
_label_source: &amp;<a class="enum" href="enum.RawLabelSource.html" title="enum store_api::region_engine::RawLabelSource">RawLabelSource</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.98.1/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;SeriesSchema&gt;&gt;, BoxedError&gt;</h4></section></summary><div class="docblock"><p>Checks whether this scanner can provide a raw-series scan for the given labels.</p>
<p>This is a non-consuming preflight: it must not start a scan or otherwise consume
scanner state. It checks immutable label binding, schema, and typed residual-predicate
eligibility. Returning <code>Some</code> requires overriding <code>scan_series_partition</code> and
promises that it can execute with this label source. <code>None</code> means the raw path is
unsupported and an ordinary scan remains available. Execution must revalidate and
return errors rather than falling back if the binding or schema changed since preflight.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.raw_series_has_explicit_labels" class="method"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#694-696">Source</a><h4 class="code-header">fn <a href="#method.raw_series_has_explicit_labels" class="fn">raw_series_has_explicit_labels</a>(
&amp;self,
_labels: &amp;<a class="enum" href="enum.RawLabelSource.html" title="enum store_api::region_engine::RawLabelSource">RawLabelSource</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.98.1/std/primitive.bool.html">bool</a>, BoxedError&gt;</h4></section></summary><div class="docblock"><p>Whether raw chunks carry complete explicit labels under this scan binding.
This non-consuming declaration must agree with the stream before its first poll.
Returning true does not replace the immutable source binding or authorization checks.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.raw_series_ordering" class="method"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#702-704">Source</a><h4 class="code-header">fn <a href="#method.raw_series_ordering" class="fn">raw_series_ordering</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;SeriesOrdering, BoxedError&gt;</h4></section></summary><div class="docblock"><p>Returns the guarantee for subsequent raw scans without consuming scanner state.</p>
<p>Legacy raw sources have no ordering declaration, so <code>Contiguous</code> is the conservative
default; <code>Interleaved</code> is not representable on the raw frame wire.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.scan_series_partition" class="method"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#725-733">Source</a><h4 class="code-header">fn <a href="#method.scan_series_partition" class="fn">scan_series_partition</a>(
&amp;self,
_ctx: &amp;<a class="struct" href="struct.QueryScanContext.html" title="struct store_api::region_engine::QueryScanContext">QueryScanContext</a>,
_metrics_set: &amp;ExecutionPlanMetricsSet,
_partition: <a class="primitive" href="https://doc.rust-lang.org/1.98.1/std/primitive.usize.html">usize</a>,
_label_source: &amp;<a class="enum" href="enum.RawLabelSource.html" title="enum store_api::region_engine::RawLabelSource">RawLabelSource</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="type" href="type.SendableRawSeriesStream.html" title="type store_api::region_engine::SendableRawSeriesStream">SendableRawSeriesStream</a>&gt;, BoxedError&gt;</h4></section></summary><div class="docblock"><p>Scans a partition as raw series when this source supports that path.</p>
<p><code>None</code> means raw capability is absent before execution and permits a legacy scan instead.
<code>Some</code> selects this entrypoint, including for an empty successful stream. Errors propagate;
callers must not replay a failed raw scan through the legacy path. Use only one entrypoint
for a given scanner partition per execution. The explicit label source is owned by the
returned stream and must be bound to this scanner’s metadata snapshot.</p>
<p>Output preserves the ordinary storage reader’s pushdown and MVCC semantics. Inexact
pushed-down predicates can leave false-positive candidates, just as in <code>scan_partition</code>.
Implementations must preserve typed residual-predicate semantics before any lossy value
conversion, or return <code>None</code> before execution when they cannot. Callers must retain
residual predicate columns until those predicates are evaluated and apply the final
projection afterward; raw capability does not mean filtering is complete.</p>
<h5 id="panics-1"><a class="doc-anchor" href="#panics-1">§</a>Panics</h5>
<p>The default implementation panics. Implementations must override this method to support
raw series scanning.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.prepare_series" class="method"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#741-751">Source</a><h4 class="code-header">fn <a href="#method.prepare_series" class="fn">prepare_series</a>(
&amp;self,
_ctx: &amp;<a class="struct" href="struct.QueryScanContext.html" title="struct store_api::region_engine::QueryScanContext">QueryScanContext</a>,
_metrics_set: &amp;ExecutionPlanMetricsSet,
_label_source: &amp;<a class="enum" href="enum.RawLabelSource.html" title="enum store_api::region_engine::RawLabelSource">RawLabelSource</a>,
) -&gt; BoxFuture&lt;'static, <a class="enum" href="https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.98.1/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;dyn <a class="trait" href="trait.PreparedSeriesSource.html" title="trait store_api::region_engine::PreparedSeriesSource">PreparedSeriesSource</a>&gt;&gt;, BoxedError&gt;&gt;</h4></section></summary><div class="docblock"><p>Prepares scanner-wide candidates once for independent ordinal-range reads.</p>
<p>Metadata I/O is asynchronous; sample payloads are loaded only by polling readers.
The owned future does not borrow the scanner. <code>None</code> means unsupported before
execution; errors must propagate without replay through a different scan path.
Implementations may share preparation with their raw partition adapter.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.reset_state" class="method"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#771">Source</a><h4 class="code-header">fn <a href="#method.reset_state" class="fn">reset_state</a>(&amp;mut self)</h4></section></summary><div class="docblock"><p>Resets execution state after streams from the previous execution have been dropped.</p>
<p>Callers must not concurrently execute, reset, or install filters through scanner aliases.
Implementations retaining dynamic predicates must discard them and derived pruning state,
while preserving static predicates, the source snapshot, and prepared properties.
The default is a no-op and does not make inherently one-shot sources replayable.</p>
</div></details><section id="method.snapshot_sequence" class="method"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#780-782">Source</a><h4 class="code-header">fn <a href="#method.snapshot_sequence" class="fn">snapshot_sequence</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="type" href="../storage/type.SequenceNumber.html" title="type store_api::storage::SequenceNumber">SequenceNumber</a>&gt;</h4></section></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 class="negative-marker"></div><section id="impl-RegionScanner-for-SinglePartitionScanner" class="impl"><a class="src rightside" href="../../src/store_api/region_engine.rs.html#1635-1692">Source</a><a href="#impl-RegionScanner-for-SinglePartitionScanner" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.RegionScanner.html" title="trait store_api::region_engine::RegionScanner">RegionScanner</a> for <a class="struct" href="struct.SinglePartitionScanner.html" title="struct store_api::region_engine::SinglePartitionScanner">SinglePartitionScanner</a></h3></section></div><script src="../../trait.impl/store_api/region_engine/trait.RegionScanner.js" async></script></section></div></main></body></html>