Is your feature request related to a problem or challenge? Please describe what you are trying to do.
I would like to generate statistics on how many rows pass a particular filter that was evaluated to BooleanArray
I know there are very fast ways to do this within the arrow codebase but I didn't see any good way to use them externally
Describe the solution you'd like
Optimized functions on BooleanArray
Describe alternatives you've considered
Use lower level Buffer apis
Additional context
apache/datafusion#3989 (comment)