Struct arrow_select::filter::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) -> 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