pub struct FilterBuilder { /* private fields */ }
Expand description
A builder to construct FilterPredicate
Implementations§
Source§impl FilterBuilder
impl FilterBuilder
Sourcepub fn new(filter: &BooleanArray) -> Self
pub fn new(filter: &BooleanArray) -> Self
Create a new FilterBuilder
that can be used to construct a FilterPredicate
Sourcepub fn optimize(self) -> Self
pub fn optimize(self) -> Self
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
Sourcepub 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