pub struct FilterCompiler { /* private fields */ }Expand description
Compiler for transforming jaq AST to dsq operations
Implementations§
Source§impl FilterCompiler
impl FilterCompiler
Sourcepub fn with_optimization_level(self, level: OptimizationLevel) -> Self
pub fn with_optimization_level(self, level: OptimizationLevel) -> Self
Set the optimization level
Sourcepub fn with_dataframe_optimizations(self, enabled: bool) -> Self
pub fn with_dataframe_optimizations(self, enabled: bool) -> Self
Enable or disable DataFrame-specific optimizations
Sourcepub fn with_max_recursion_depth(self, depth: usize) -> Self
pub fn with_max_recursion_depth(self, depth: usize) -> Self
Set maximum recursion depth
Sourcepub fn compile_str(&self, filter: &str) -> Result<CompiledFilter>
pub fn compile_str(&self, filter: &str) -> Result<CompiledFilter>
Compile a filter expression from a string
Sourcepub fn compile_expr(
&self,
expr: &Expr,
ctx: &mut CompilationContext,
) -> Result<CompiledFilter>
pub fn compile_expr( &self, expr: &Expr, ctx: &mut CompilationContext, ) -> Result<CompiledFilter>
Compile a dsq-parser Expr into dsq operations
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FilterCompiler
impl !RefUnwindSafe for FilterCompiler
impl Send for FilterCompiler
impl Sync for FilterCompiler
impl Unpin for FilterCompiler
impl !UnwindSafe for FilterCompiler
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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