pub struct FilterExecBuilder { /* private fields */ }Expand description
Builder for FilterExec to set optional parameters
Implementations§
Source§impl FilterExecBuilder
impl FilterExecBuilder
Sourcepub fn new(
predicate: Arc<dyn PhysicalExpr>,
input: Arc<dyn ExecutionPlan>,
) -> Self
pub fn new( predicate: Arc<dyn PhysicalExpr>, input: Arc<dyn ExecutionPlan>, ) -> Self
Create a new builder with required parameters (predicate and input)
Sourcepub fn with_input(self, input: Arc<dyn ExecutionPlan>) -> Self
pub fn with_input(self, input: Arc<dyn ExecutionPlan>) -> Self
Set the input execution plan
Sourcepub fn with_predicate(self, predicate: Arc<dyn PhysicalExpr>) -> Self
pub fn with_predicate(self, predicate: Arc<dyn PhysicalExpr>) -> Self
Set the predicate expression
Sourcepub fn apply_projection(self, projection: Option<Vec<usize>>) -> Result<Self>
pub fn apply_projection(self, projection: Option<Vec<usize>>) -> Result<Self>
Set the projection, composing with any existing projection.
If a projection is already set, the new projection indices are mapped
through the existing projection. For example, if the current projection
is [0, 2, 3] and apply_projection(Some(vec![0, 2])) is called, the
resulting projection will be [0, 3] (indices 0 and 2 of [0, 2, 3]).
If no projection is currently set, the new projection is used directly.
If None is passed, the projection is cleared.
Sourcepub fn apply_projection_by_ref(
self,
projection: Option<&ProjectionRef>,
) -> Result<Self>
pub fn apply_projection_by_ref( self, projection: Option<&ProjectionRef>, ) -> Result<Self>
The same as Self::apply_projection but takes projection shared reference.
Sourcepub fn with_default_selectivity(self, default_selectivity: u8) -> Self
pub fn with_default_selectivity(self, default_selectivity: u8) -> Self
Set the default selectivity
Sourcepub fn with_batch_size(self, batch_size: usize) -> Self
pub fn with_batch_size(self, batch_size: usize) -> Self
Set the batch size
Sourcepub fn with_fetch(self, fetch: Option<usize>) -> Self
pub fn with_fetch(self, fetch: Option<usize>) -> Self
Set the fetch limit
Sourcepub fn build(self) -> Result<FilterExec>
pub fn build(self) -> Result<FilterExec>
Build the FilterExec, computing properties once with all configured parameters
Trait Implementations§
Source§impl From<&FilterExec> for FilterExecBuilder
impl From<&FilterExec> for FilterExecBuilder
Source§fn from(exec: &FilterExec) -> Self
fn from(exec: &FilterExec) -> Self
Auto Trait Implementations§
impl Freeze for FilterExecBuilder
impl !RefUnwindSafe for FilterExecBuilder
impl Send for FilterExecBuilder
impl Sync for FilterExecBuilder
impl Unpin for FilterExecBuilder
impl UnsafeUnpin for FilterExecBuilder
impl !UnwindSafe for FilterExecBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more