pub struct TextSubjectWindow { /* private fields */ }Expand description
One resolved (subject, graph) window, interned into the query dict.
Implementations§
Source§impl TextSubjectWindow
impl TextSubjectWindow
Sourcepub fn stored_ids(&self) -> usize
pub fn stored_ids(&self) -> usize
Ids the memo budget charges: one per subject, plus one per graph.
Sourcepub fn contains_subject(&self, subject: &EncodedTerm) -> bool
pub fn contains_subject(&self, subject: &EncodedTerm) -> bool
Whether the window holds subject.
The probe road’s membership test: a pushed subject is looked up in the dict, then binary-searched in the sorted subject ids. A term the dict has never interned cannot be in the window.
Sourcepub fn graphs_for(
&self,
subject: &EncodedTerm,
) -> Result<Vec<EncodedTerm>, ComputeError>
pub fn graphs_for( &self, subject: &EncodedTerm, ) -> Result<Vec<EncodedTerm>, ComputeError>
Graph terms for subject, in window order; empty when the request did
not ask for the graph column or the subject is absent. An id that does
not resolve is an ERROR: the subject form has no residual, so a lost
graph must not silently drop the row.
Sourcepub fn rows(&self) -> TextSubjectRows<'_>
pub fn rows(&self) -> TextSubjectRows<'_>
Every row, decoded in bounded chunks (the keyless / driver execution).
Yields an error if a stored id does not resolve in the window’s
dictionary. That cannot happen while the window holds the Arc (the
dictionary never evicts), so the error exists to make a corrupt window
fail the query instead of silently dropping a row — the subject form
has no residual to recover it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextSubjectWindow
impl RefUnwindSafe for TextSubjectWindow
impl Send for TextSubjectWindow
impl Sync for TextSubjectWindow
impl Unpin for TextSubjectWindow
impl UnsafeUnpin for TextSubjectWindow
impl UnwindSafe for TextSubjectWindow
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
§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].