pub struct FilterExecutor { /* private fields */ }Expand description
Filter executor that runs compiled filters against data
Implementations§
Source§impl FilterExecutor
impl FilterExecutor
Sourcepub fn with_config(config: ExecutorConfig) -> Self
pub fn with_config(config: ExecutorConfig) -> Self
Create a new filter executor with custom configuration
Sourcepub fn execute_str(
&mut self,
filter: &str,
input: Value,
) -> Result<ExecutionResult>
pub fn execute_str( &mut self, filter: &str, input: Value, ) -> Result<ExecutionResult>
Execute a filter string against a value
Sourcepub fn execute_compiled(
&self,
filter: &CompiledFilter,
input: Value,
) -> Result<ExecutionResult>
pub fn execute_compiled( &self, filter: &CompiledFilter, input: Value, ) -> Result<ExecutionResult>
Execute a compiled filter against a value
Sourcepub fn execute_streaming(
&mut self,
filter: &str,
input_stream: impl Iterator<Item = Result<Value>>,
) -> Result<Vec<ExecutionResult>>
pub fn execute_streaming( &mut self, filter: &str, input_stream: impl Iterator<Item = Result<Value>>, ) -> Result<Vec<ExecutionResult>>
Execute a filter in streaming mode for large datasets
Sourcepub fn validate_filter(&self, filter: &str) -> Result<()>
pub fn validate_filter(&self, filter: &str) -> Result<()>
Validate a filter string without executing it
Sourcepub fn get_stats(&self) -> Option<&ExecutionStats>
pub fn get_stats(&self) -> Option<&ExecutionStats>
Get execution statistics
Sourcepub fn clear_cache(&mut self)
pub fn clear_cache(&mut self)
Clear the filter cache
Sourcepub fn cache_size(&self) -> usize
pub fn cache_size(&self) -> usize
Get cache size
Sourcepub fn precompile(&mut self, filter: &str) -> Result<()>
pub fn precompile(&mut self, filter: &str) -> Result<()>
Precompile and cache a filter
Sourcepub fn set_config(&mut self, config: ExecutorConfig)
pub fn set_config(&mut self, config: ExecutorConfig)
Set execution configuration
Sourcepub fn get_config(&self) -> &ExecutorConfig
pub fn get_config(&self) -> &ExecutorConfig
Get current configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FilterExecutor
impl !RefUnwindSafe for FilterExecutor
impl Send for FilterExecutor
impl Sync for FilterExecutor
impl Unpin for FilterExecutor
impl !UnwindSafe for FilterExecutor
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