pub struct RdfFusionLogicalPlanBuilderContext { /* private fields */ }
Expand description
The context that allows creating a RdfFusionLogicalPlanBuilder.
Implementations§
Source§impl RdfFusionLogicalPlanBuilderContext
impl RdfFusionLogicalPlanBuilderContext
Sourcepub fn new(
rdf_fusion_context: RdfFusionContextView,
) -> RdfFusionLogicalPlanBuilderContext
pub fn new( rdf_fusion_context: RdfFusionContextView, ) -> RdfFusionLogicalPlanBuilderContext
Creates a new RdfFusionLogicalPlanBuilder.
Sourcepub fn registry(&self) -> &Arc<dyn RdfFusionFunctionRegistry>
pub fn registry(&self) -> &Arc<dyn RdfFusionFunctionRegistry>
Returns a reference to the RdfFusionFunctionRegistry of the builder.
Sourcepub fn encodings(&self) -> &RdfFusionEncodings
pub fn encodings(&self) -> &RdfFusionEncodings
Returns the RdfFusionEncodings of the builder.
Sourcepub fn storage_encoding(&self) -> &QuadStorageEncoding
pub fn storage_encoding(&self) -> &QuadStorageEncoding
Returns the QuadStorageEncoding of the builder.
Sourcepub fn expr_builder_context_with_schema<'a>(
&'a self,
schema: &'a DFSchema,
) -> RdfFusionExprBuilderContext<'a>
pub fn expr_builder_context_with_schema<'a>( &'a self, schema: &'a DFSchema, ) -> RdfFusionExprBuilderContext<'a>
Returns a new RdfFusionExprBuilderContext.
Sourcepub fn create(&self, plan: Arc<LogicalPlan>) -> RdfFusionLogicalPlanBuilder
pub fn create(&self, plan: Arc<LogicalPlan>) -> RdfFusionLogicalPlanBuilder
Creates a new RdfFusionLogicalPlanBuilder with the given plan
.
Sourcepub fn create_matching_quads(
&self,
active_graph: ActiveGraph,
subject: Option<NamedOrBlankNode>,
predicate: Option<NamedNode>,
object: Option<Term>,
) -> RdfFusionLogicalPlanBuilder
pub fn create_matching_quads( &self, active_graph: ActiveGraph, subject: Option<NamedOrBlankNode>, predicate: Option<NamedNode>, object: Option<Term>, ) -> RdfFusionLogicalPlanBuilder
Creates a new RdfFusionLogicalPlanBuilder that matches Quads.
The active_graph
dictates which graphs should be considered, while the optional constants
(subject
, predicate
, object
) allow filtering the resulting solution sequence.
This does not allow you to bind values to variables. See Self::create_pattern for this purpose.
Sourcepub fn create_empty_solution(&self) -> RdfFusionLogicalPlanBuilder
pub fn create_empty_solution(&self) -> RdfFusionLogicalPlanBuilder
Creates a new RdfFusionLogicalPlanBuilder that that returns a single empty solution.
Sourcepub fn create_values(
&self,
variables: &[Variable],
bindings: &[Vec<Option<GroundTerm>>],
) -> Result<RdfFusionLogicalPlanBuilder, DataFusionError>
pub fn create_values( &self, variables: &[Variable], bindings: &[Vec<Option<GroundTerm>>], ) -> Result<RdfFusionLogicalPlanBuilder, DataFusionError>
Creates a new RdfFusionLogicalPlanBuilder that holds the given VALUES as RDF terms.
The PlainTermEncoding is used for encoding the terms.
Sourcepub fn create_bgp(
&self,
active_graph: &ActiveGraph,
graph_variables: Option<&Variable>,
patterns: &[TriplePattern],
) -> Result<RdfFusionLogicalPlanBuilder, DataFusionError>
pub fn create_bgp( &self, active_graph: &ActiveGraph, graph_variables: Option<&Variable>, patterns: &[TriplePattern], ) -> Result<RdfFusionLogicalPlanBuilder, DataFusionError>
Creates a new RdfFusionLogicalPlanBuilder that matches the given basic graph pattern and returns all solutions.
§Relevant Specifications
Sourcepub fn create_pattern(
&self,
active_graph: ActiveGraph,
graph_variable: Option<Variable>,
pattern: TriplePattern,
) -> RdfFusionLogicalPlanBuilder
pub fn create_pattern( &self, active_graph: ActiveGraph, graph_variable: Option<Variable>, pattern: TriplePattern, ) -> RdfFusionLogicalPlanBuilder
Creates a new RdfFusionLogicalPlanBuilder that matches a single pattern
on the
active_graph
.
§Active Graph
The active_graph
is interpreted from the viewpoint of the quad store, not the query. This
API does not have knowledge about RDF data sets and it is up to the user to correctly
construct an ActiveGraph instance from the data set.
See ActiveGraph for more detailed information.
Sourcepub fn create_property_path(
&self,
active_graph: ActiveGraph,
graph_variable: Option<Variable>,
path: PropertyPathExpression,
subject: TermPattern,
object: TermPattern,
) -> RdfFusionLogicalPlanBuilder
pub fn create_property_path( &self, active_graph: ActiveGraph, graph_variable: Option<Variable>, path: PropertyPathExpression, subject: TermPattern, object: TermPattern, ) -> RdfFusionLogicalPlanBuilder
Creates a new RdfFusionLogicalPlanBuilder from a SPARQL PropertyPathExpression.
§Relevant Resources
Trait Implementations§
Source§impl Clone for RdfFusionLogicalPlanBuilderContext
impl Clone for RdfFusionLogicalPlanBuilderContext
Source§fn clone(&self) -> RdfFusionLogicalPlanBuilderContext
fn clone(&self) -> RdfFusionLogicalPlanBuilderContext
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for RdfFusionLogicalPlanBuilderContext
impl !RefUnwindSafe for RdfFusionLogicalPlanBuilderContext
impl Send for RdfFusionLogicalPlanBuilderContext
impl Sync for RdfFusionLogicalPlanBuilderContext
impl Unpin for RdfFusionLogicalPlanBuilderContext
impl !UnwindSafe for RdfFusionLogicalPlanBuilderContext
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more