pub struct OrPredicate { /* private fields */ }Expand description
Composite predicate combining multiple predicates with OR.
Implementations§
Source§impl OrPredicate
impl OrPredicate
Sourcepub fn new(predicates: Vec<Box<dyn FactorizedPredicate>>) -> Self
pub fn new(predicates: Vec<Box<dyn FactorizedPredicate>>) -> Self
Creates a new OR predicate.
Trait Implementations§
Source§impl FactorizedPredicate for OrPredicate
impl FactorizedPredicate for OrPredicate
Source§fn evaluate(
&self,
chunk: &FactorizedChunk,
level: usize,
physical_idx: usize,
) -> bool
fn evaluate( &self, chunk: &FactorizedChunk, level: usize, physical_idx: usize, ) -> bool
Evaluates the predicate for a single physical index at a level. Read more
Source§fn target_level(&self) -> Option<usize>
fn target_level(&self) -> Option<usize>
Returns the level this predicate operates on. Read more
Source§fn evaluate_batch(
&self,
chunk: &FactorizedChunk,
level: usize,
) -> LevelSelection
fn evaluate_batch( &self, chunk: &FactorizedChunk, level: usize, ) -> LevelSelection
Evaluates the predicate for all physical indices at a level. Read more
Auto Trait Implementations§
impl Freeze for OrPredicate
impl !RefUnwindSafe for OrPredicate
impl Send for OrPredicate
impl Sync for OrPredicate
impl Unpin for OrPredicate
impl !UnwindSafe for OrPredicate
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