pub struct PatternConverter;
Expand description
Pattern conversion utilities
Implementations§
Source§impl PatternConverter
impl PatternConverter
Sourcepub fn algebra_to_model_patterns(
patterns: &[AlgebraTriplePattern],
) -> Vec<TriplePattern>
pub fn algebra_to_model_patterns( patterns: &[AlgebraTriplePattern], ) -> Vec<TriplePattern>
Convert a vector of algebra patterns to model patterns
Sourcepub fn model_to_algebra_patterns(
patterns: &[TriplePattern],
) -> Result<Vec<AlgebraTriplePattern>, OxirsError>
pub fn model_to_algebra_patterns( patterns: &[TriplePattern], ) -> Result<Vec<AlgebraTriplePattern>, OxirsError>
Convert a vector of model patterns to algebra patterns
Sourcepub fn extract_variables_from_algebra(
patterns: &[AlgebraTriplePattern],
) -> HashSet<Variable>
pub fn extract_variables_from_algebra( patterns: &[AlgebraTriplePattern], ) -> HashSet<Variable>
Extract all variables from a set of algebra patterns
Sourcepub fn extract_variables_from_model(
patterns: &[TriplePattern],
) -> HashSet<Variable>
pub fn extract_variables_from_model( patterns: &[TriplePattern], ) -> HashSet<Variable>
Extract all variables from a set of model patterns
Sourcepub fn estimate_pattern_selectivity(patterns: &[UnifiedTriplePattern]) -> f64
pub fn estimate_pattern_selectivity(patterns: &[UnifiedTriplePattern]) -> f64
Estimate combined selectivity for a set of patterns
Auto Trait Implementations§
impl Freeze for PatternConverter
impl RefUnwindSafe for PatternConverter
impl Send for PatternConverter
impl Sync for PatternConverter
impl Unpin for PatternConverter
impl UnwindSafe for PatternConverter
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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 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>
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