pub struct ReadPlanBuilder { /* private fields */ }Expand description
A builder for ReadPlan
Implementations§
Source§impl ReadPlanBuilder
impl ReadPlanBuilder
Sourcepub fn with_selection(self, selection: Option<RowSelection>) -> Self
pub fn with_selection(self, selection: Option<RowSelection>) -> Self
Set the current selection to the given value
Sourcepub fn with_row_selection_policy(self, policy: RowSelectionPolicy) -> Self
pub fn with_row_selection_policy(self, policy: RowSelectionPolicy) -> Self
Configure the policy to use when materialising the RowSelection
Defaults to RowSelectionPolicy::Auto
Sourcepub fn row_selection_policy(&self) -> &RowSelectionPolicy
pub fn row_selection_policy(&self) -> &RowSelectionPolicy
Returns the current row selection policy
Sourcepub fn selection(&self) -> Option<&RowSelection>
pub fn selection(&self) -> Option<&RowSelection>
Returns the current selection, if any
Sourcepub fn selects_any(&self) -> bool
pub fn selects_any(&self) -> bool
Returns true if the current plan selects any rows
Sourcepub fn num_rows_selected(&self) -> Option<usize>
pub fn num_rows_selected(&self) -> Option<usize>
Returns the number of rows selected, or None if all rows are selected.
Sourcepub fn with_predicate(
self,
array_reader: Box<dyn ArrayReader>,
predicate: &mut dyn ArrowPredicate,
) -> Result<Self>
pub fn with_predicate( self, array_reader: Box<dyn ArrayReader>, predicate: &mut dyn ArrowPredicate, ) -> Result<Self>
Evaluates an ArrowPredicate, updating this plan’s selection
If the current selection is Some, the resulting RowSelection
will be the conjunction of the existing selection and the rows selected
by predicate.
Note: pre-existing selections may come from evaluating a previous predicate
or if the ParquetRecordBatchReader specified an explicit
RowSelection in addition to one or more predicates.
Trait Implementations§
Source§impl Clone for ReadPlanBuilder
impl Clone for ReadPlanBuilder
Source§fn clone(&self) -> ReadPlanBuilder
fn clone(&self) -> ReadPlanBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more