pub struct GeoCandidateScanRequest {
pub intervals: Vec<CellInterval>,
pub snapshot_id: u64,
pub limit: u64,
pub query_envelope: Option<Vec<u8>>,
}Expand description
Sorted, merged list of S2 cell-id intervals to probe: covering cells’ [range_min, range_max] descendant ranges ∪ exact ancestor cell ids as single-value ranges. One call drains the whole candidate set — this RPC is NEVER cursor-paged (a new iterator would clear the partition’s DISTINCT seen-set and re-emit geometries).
Fields§
§intervals: Vec<CellInterval>§snapshot_id: u64MVCC read timestamp (same domain as ScanPattern.snapshot_id).
limit: u64Optional per-drain cap on emitted distinct candidates (0 = unlimited). Local to this one call — never a cross-RPC cursor.
query_envelope: Option<Vec<u8>>CRS84 envelope of the constant query geometry (min_lon, min_lat, max_lon, max_lat as 4 × f32 big-endian, 16 bytes). The partition uses it for the stored-envelope AABB reject ONLY; it computes no S2 geometry of its own. Absent / not 16 bytes = no AABB reject on any row.
Implementations§
Source§impl GeoCandidateScanRequest
impl GeoCandidateScanRequest
Sourcepub fn query_envelope(&self) -> &[u8] ⓘ
pub fn query_envelope(&self) -> &[u8] ⓘ
Returns the value of query_envelope, or the default value if query_envelope is unset.
Trait Implementations§
Source§impl Clone for GeoCandidateScanRequest
impl Clone for GeoCandidateScanRequest
Source§fn clone(&self) -> GeoCandidateScanRequest
fn clone(&self) -> GeoCandidateScanRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GeoCandidateScanRequest
impl Debug for GeoCandidateScanRequest
Source§impl Default for GeoCandidateScanRequest
impl Default for GeoCandidateScanRequest
Source§impl Message for GeoCandidateScanRequest
impl Message for GeoCandidateScanRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for GeoCandidateScanRequest
impl PartialEq for GeoCandidateScanRequest
impl StructuralPartialEq for GeoCandidateScanRequest
Auto Trait Implementations§
impl Freeze for GeoCandidateScanRequest
impl RefUnwindSafe for GeoCandidateScanRequest
impl Send for GeoCandidateScanRequest
impl Sync for GeoCandidateScanRequest
impl Unpin for GeoCandidateScanRequest
impl UnsafeUnpin for GeoCandidateScanRequest
impl UnwindSafe for GeoCandidateScanRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].