pub struct QueryDataset {
pub default: DefaultGraphWindow,
pub named: NamedGraphWindow,
pub named_strings: Vec<(StrHash, String)>,
}Expand description
Resolved SPARQL dataset for one query (planner + executor).
Fields§
§default: DefaultGraphWindowWindow for triple patterns not inside GRAPH { }.
named: NamedGraphWindowWindow for GRAPH <g> / GRAPH ?g.
named_strings: Vec<(StrHash, String)>Hash → raw IRI for hashed FROM NAMED / protocol named-graph URIs.
Plan-time GRAPH ?g VALUES domains use this so late materialization
does not ask the registry for IRIs that were never stored.
Implementations§
Source§impl QueryDataset
impl QueryDataset
Sourcepub fn engine_fallback(default_union: bool) -> Self
pub fn engine_fallback(default_union: bool) -> Self
Engine fallback: no FROM / protocol dataset.
Sourcepub fn resolve(
protocol_default: &[String],
protocol_named: &[String],
query: Option<&SparqlQueryDataset>,
default_union: bool,
) -> Result<Self, ComputeError>
pub fn resolve( protocol_default: &[String], protocol_named: &[String], query: Option<&SparqlQueryDataset>, default_union: bool, ) -> Result<Self, ComputeError>
Build from SPARQL Protocol graph IRIs, else query-text FROM / FROM NAMED,
else default_union.
Sourcepub fn named_contains(&self, graph: &EncodedTerm) -> bool
pub fn named_contains(&self, graph: &EncodedTerm) -> bool
Whether a GRAPH <iri> name is in the named window.
Trait Implementations§
Source§impl Clone for QueryDataset
impl Clone for QueryDataset
Source§fn clone(&self) -> QueryDataset
fn clone(&self) -> QueryDataset
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryDataset
impl Debug for QueryDataset
Source§impl Default for QueryDataset
impl Default for QueryDataset
Source§impl PartialEq for QueryDataset
impl PartialEq for QueryDataset
impl StructuralPartialEq for QueryDataset
Auto Trait Implementations§
impl Freeze for QueryDataset
impl RefUnwindSafe for QueryDataset
impl Send for QueryDataset
impl Sync for QueryDataset
impl Unpin for QueryDataset
impl UnsafeUnpin for QueryDataset
impl UnwindSafe for QueryDataset
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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
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>,
Applies the layer to a service and wraps it in [
Layered].