pub struct TextSubjectScanRequest {
pub mode: i32,
pub query: String,
pub language: Option<String>,
pub limit: u64,
pub snapshot_id: u64,
pub predicates: Vec<Vec<u8>>,
pub graph_filter_terms: Vec<Vec<u8>>,
pub graph_filter_allow: bool,
pub graph_name: Option<Vec<u8>>,
pub merge_default_graph: bool,
pub return_graph: bool,
pub subject_equals_graph: bool,
}Fields§
§mode: i32Search mode and query, same meaning as TextCandidateScanRequest.
query: String§language: Option<String>Optional language restriction (lang:fr, or the _none sentinel).
limit: u64Per-drain guard on emitted DISTINCT (subject, graph) rows (0 = unlimited). Exceeding it is an ERROR, never a silent truncation: dropped subjects would drop rows.
snapshot_id: u64MVCC read timestamp. Load-bearing here: the resolve reads the visible OPSG rows, unlike the term-only candidate scan whose postings carry no per-document visibility.
predicates: Vec<Vec<u8>>Encoded predicate terms restricting the resolve. Empty = no predicate restriction: the drain returns every literal the TEXT INDEX holds for this query (there is no hexastore fallback), and each one’s OPSG rows are read under any predicate. That is only the right request when the query really means the whole indexed universe, so a caller that means the configured allowlist universe must list it explicitly; the partition does not carry the plugin config to re-check it.
graph_filter_terms: Vec<Vec<u8>>Graph scope, same fields and meaning as ScanPatternRequest.
graph_filter_allow: bool§graph_name: Option<Vec<u8>>§merge_default_graph: bool§return_graph: boolEmit the graph column: the query binds a graph variable, so the subject alone cannot place the row.
subject_equals_graph: boolKeep only rows whose subject term equals their graph term. The query
binds the graph as the searched subject (GRAPH ?s { … } plus
text:query(?s, …)), so one variable takes one value and the matched
triple’s subject and graph are the same term. The resolve enforces it
per row; return_graph is false for this shape (the one column is the
subject).
Implementations§
Source§impl TextSubjectScanRequest
impl TextSubjectScanRequest
Sourcepub fn mode(&self) -> TextCandidateMode
pub fn mode(&self) -> TextCandidateMode
Returns the enum value of mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_mode(&mut self, value: TextCandidateMode)
pub fn set_mode(&mut self, value: TextCandidateMode)
Sets mode to the provided enum value.
Sourcepub fn language(&self) -> &str
pub fn language(&self) -> &str
Returns the value of language, or the default value if language is unset.
Sourcepub fn graph_name(&self) -> &[u8] ⓘ
pub fn graph_name(&self) -> &[u8] ⓘ
Returns the value of graph_name, or the default value if graph_name is unset.
Trait Implementations§
Source§impl Clone for TextSubjectScanRequest
impl Clone for TextSubjectScanRequest
Source§fn clone(&self) -> TextSubjectScanRequest
fn clone(&self) -> TextSubjectScanRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TextSubjectScanRequest
impl Debug for TextSubjectScanRequest
Source§impl Default for TextSubjectScanRequest
impl Default for TextSubjectScanRequest
Source§impl Hash for TextSubjectScanRequest
impl Hash for TextSubjectScanRequest
Source§impl Message for TextSubjectScanRequest
impl Message for TextSubjectScanRequest
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 TextSubjectScanRequest
impl PartialEq for TextSubjectScanRequest
impl Eq for TextSubjectScanRequest
impl StructuralPartialEq for TextSubjectScanRequest
Auto Trait Implementations§
impl Freeze for TextSubjectScanRequest
impl RefUnwindSafe for TextSubjectScanRequest
impl Send for TextSubjectScanRequest
impl Sync for TextSubjectScanRequest
impl Unpin for TextSubjectScanRequest
impl UnsafeUnpin for TextSubjectScanRequest
impl UnwindSafe for TextSubjectScanRequest
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§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].