Struct arrow::compute::FilterBuilder
source · pub struct FilterBuilder { /* private fields */ }
Expand description
A builder to construct FilterPredicate
Implementations§
source§impl FilterBuilder
impl FilterBuilder
sourcepub fn new(filter: &BooleanArray) -> FilterBuilder
pub fn new(filter: &BooleanArray) -> FilterBuilder
Create a new FilterBuilder
that can be used to construct a FilterPredicate
sourcepub 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
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