Skip to main content

FilterExecBuilder

Struct FilterExecBuilder 

Source
pub struct FilterExecBuilder { /* private fields */ }
Expand description

Builder for FilterExec to set optional parameters

Implementations§

Source§

impl FilterExecBuilder

Source

pub fn new( predicate: Arc<dyn PhysicalExpr>, input: Arc<dyn ExecutionPlan>, ) -> Self

Create a new builder with required parameters (predicate and input)

Source

pub fn with_input(self, input: Arc<dyn ExecutionPlan>) -> Self

Set the input execution plan

Source

pub fn with_predicate(self, predicate: Arc<dyn PhysicalExpr>) -> Self

Set the predicate expression

Source

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.

Source

pub fn apply_projection_by_ref( self, projection: Option<&ProjectionRef>, ) -> Result<Self>

The same as Self::apply_projection but takes projection shared reference.

Source

pub fn with_default_selectivity(self, default_selectivity: u8) -> Self

Set the default selectivity

Source

pub fn with_batch_size(self, batch_size: usize) -> Self

Set the batch size

Source

pub fn with_fetch(self, fetch: Option<usize>) -> Self

Set the fetch limit

Source

pub fn build(self) -> Result<FilterExec>

Build the FilterExec, computing properties once with all configured parameters

Trait Implementations§

Source§

impl From<&FilterExec> for FilterExecBuilder

Source§

fn from(exec: &FilterExec) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V