Struct FilterBuilder
pub struct FilterBuilder {
filter: BooleanArray,
count: usize,
strategy: IterationStrategy,
}
Expand description
A builder to construct FilterPredicate
Fields§
§filter: BooleanArray
§count: usize
§strategy: IterationStrategy
Implementations§
§impl FilterBuilder
impl FilterBuilder
pub fn new(filter: &BooleanArray) -> FilterBuilder
pub fn new(filter: &BooleanArray) -> FilterBuilder
Create a new FilterBuilder
that can be used to construct a FilterPredicate
pub fn optimize(self) -> FilterBuilder
pub fn optimize(self) -> FilterBuilder
Compute an optimised representation of the provided filter
mask that can be
applied to an array more quickly.
Note: There is limited benefit to calling this to then filter a single array Note: This will likely have a larger memory footprint than the original mask
pub fn build(self) -> FilterPredicate
pub fn build(self) -> FilterPredicate
Construct the final FilterPredicate
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FilterBuilder
impl RefUnwindSafe for FilterBuilder
impl Send for FilterBuilder
impl Sync for FilterBuilder
impl Unpin for FilterBuilder
impl UnwindSafe for FilterBuilder
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