RdfFusionLogicalPlanBuilderContext

Struct RdfFusionLogicalPlanBuilderContext 

Source
pub struct RdfFusionLogicalPlanBuilderContext { /* private fields */ }
Expand description

The context that allows creating a RdfFusionLogicalPlanBuilder.

Implementations§

Source§

impl RdfFusionLogicalPlanBuilderContext

Source

pub fn new( rdf_fusion_context: RdfFusionContextView, ) -> RdfFusionLogicalPlanBuilderContext

Source

pub fn registry(&self) -> &Arc<dyn RdfFusionFunctionRegistry>

Returns a reference to the RdfFusionFunctionRegistry of the builder.

Source

pub fn encodings(&self) -> &RdfFusionEncodings

Returns the RdfFusionEncodings of the builder.

Source

pub fn storage_encoding(&self) -> &QuadStorageEncoding

Returns the QuadStorageEncoding of the builder.

Source

pub fn expr_builder_context_with_schema<'a>( &'a self, schema: &'a DFSchema, ) -> RdfFusionExprBuilderContext<'a>

Source

pub fn create(&self, plan: Arc<LogicalPlan>) -> RdfFusionLogicalPlanBuilder

Creates a new RdfFusionLogicalPlanBuilder with the given plan.

Source

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.

Source

pub fn create_empty_solution(&self) -> RdfFusionLogicalPlanBuilder

Creates a new RdfFusionLogicalPlanBuilder that that returns a single empty solution.

Source

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.

Source

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
Source

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.

Source

pub fn create_property_path( &self, active_graph: ActiveGraph, graph_variable: Option<Variable>, path: PropertyPathExpression, subject: TermPattern, object: TermPattern, ) -> RdfFusionLogicalPlanBuilder

Trait Implementations§

Source§

impl Clone for RdfFusionLogicalPlanBuilderContext

Source§

fn clone(&self) -> RdfFusionLogicalPlanBuilderContext

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RdfFusionLogicalPlanBuilderContext

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> ErasedDestructor for T
where T: 'static,