pub struct RecursiveWhereEvaluator<'a, 'ctx, 'exec> { /* private fields */ }
Expand description
Evaluates WHERE clauses from recursive_parser
directly against DataTable
Implementations§
Source§impl<'a, 'ctx, 'exec> RecursiveWhereEvaluator<'a, 'ctx, 'exec>
impl<'a, 'ctx, 'exec> RecursiveWhereEvaluator<'a, 'ctx, 'exec>
pub fn new( table: &'a DataTable, ) -> RecursiveWhereEvaluator<'a, 'static, 'static>
Sourcepub fn with_context(
table: &'a DataTable,
context: &'ctx mut EvaluationContext,
) -> Self
pub fn with_context( table: &'a DataTable, context: &'ctx mut EvaluationContext, ) -> Self
Create evaluator with an evaluation context for caching
Sourcepub fn with_exec_context(
table: &'a DataTable,
exec_context: &'exec ExecutionContext,
case_insensitive: bool,
) -> Self
pub fn with_exec_context( table: &'a DataTable, exec_context: &'exec ExecutionContext, case_insensitive: bool, ) -> Self
Create evaluator with execution context for alias resolution
Sourcepub fn with_both_contexts(
table: &'a DataTable,
context: &'ctx mut EvaluationContext,
exec_context: &'exec ExecutionContext,
) -> Self
pub fn with_both_contexts( table: &'a DataTable, context: &'ctx mut EvaluationContext, exec_context: &'exec ExecutionContext, ) -> Self
Create evaluator with both execution context (for alias resolution) and evaluation context (for regex caching)
pub fn with_case_insensitive( table: &'a DataTable, case_insensitive: bool, ) -> RecursiveWhereEvaluator<'a, 'static, 'static>
pub fn with_config( table: &'a DataTable, case_insensitive: bool, _date_notation: String, ) -> RecursiveWhereEvaluator<'a, 'static, 'static>
Auto Trait Implementations§
impl<'a, 'ctx, 'exec> Freeze for RecursiveWhereEvaluator<'a, 'ctx, 'exec>
impl<'a, 'ctx, 'exec> RefUnwindSafe for RecursiveWhereEvaluator<'a, 'ctx, 'exec>
impl<'a, 'ctx, 'exec> Send for RecursiveWhereEvaluator<'a, 'ctx, 'exec>
impl<'a, 'ctx, 'exec> Sync for RecursiveWhereEvaluator<'a, 'ctx, 'exec>
impl<'a, 'ctx, 'exec> Unpin for RecursiveWhereEvaluator<'a, 'ctx, 'exec>
impl<'a, 'ctx, 'exec> !UnwindSafe for RecursiveWhereEvaluator<'a, 'ctx, 'exec>
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