PhysicalExprExt

Trait PhysicalExprExt 

Source
pub trait PhysicalExprExt: Sized {
    // Required methods
    fn apply_with_lambdas_params<'n, F>(
        &'n self,
        f: F,
    ) -> Result<TreeNodeRecursion, DataFusionError>
       where F: FnMut(&'n Self, &HashSet<&'n str>) -> Result<TreeNodeRecursion, DataFusionError>;
    fn apply_with_schema<'n, F>(
        &'n self,
        schema: &Schema,
        f: F,
    ) -> Result<TreeNodeRecursion, DataFusionError>
       where F: FnMut(&'n Self, &Schema) -> Result<TreeNodeRecursion, DataFusionError>;
    fn apply_children_with_schema<'n, F>(
        &'n self,
        schema: &Schema,
        f: F,
    ) -> Result<TreeNodeRecursion, DataFusionError>
       where F: FnMut(&'n Self, &Schema) -> Result<TreeNodeRecursion, DataFusionError>;
    fn transform_down_with_schema<F>(
        self,
        schema: &Schema,
        f: F,
    ) -> Result<Transformed<Self>, DataFusionError>
       where F: FnMut(Self, &Schema) -> Result<Transformed<Self>, DataFusionError>;
    fn transform_up_with_schema<F>(
        self,
        schema: &Schema,
        f: F,
    ) -> Result<Transformed<Self>, DataFusionError>
       where F: FnMut(Self, &Schema) -> Result<Transformed<Self>, DataFusionError>;
    fn transform_down_with_lambdas_params(
        self,
        f: impl FnMut(Self, &HashSet<String>) -> Result<Transformed<Self>, DataFusionError>,
    ) -> Result<Transformed<Self>, DataFusionError>;
    fn transform_up_with_lambdas_params(
        self,
        f: impl FnMut(Self, &HashSet<String>) -> Result<Transformed<Self>, DataFusionError>,
    ) -> Result<Transformed<Self>, DataFusionError>;

    // Provided methods
    fn transform_with_schema<F>(
        self,
        schema: &Schema,
        f: F,
    ) -> Result<Transformed<Self>, DataFusionError>
       where F: FnMut(Self, &Schema) -> Result<Transformed<Self>, DataFusionError> { ... }
    fn transform_with_lambdas_params(
        self,
        f: impl FnMut(Self, &HashSet<String>) -> Result<Transformed<Self>, DataFusionError>,
    ) -> Result<Transformed<Self>, DataFusionError> { ... }
}

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl PhysicalExprExt for Arc<dyn PhysicalExpr>

Source§

fn apply_with_lambdas_params<'n, F>( &'n self, f: F, ) -> Result<TreeNodeRecursion, DataFusionError>

Source§

fn apply_with_schema<'n, F>( &'n self, schema: &Schema, f: F, ) -> Result<TreeNodeRecursion, DataFusionError>

Source§

fn apply_children_with_schema<'n, F>( &'n self, schema: &Schema, f: F, ) -> Result<TreeNodeRecursion, DataFusionError>

Source§

fn transform_down_with_schema<F>( self, schema: &Schema, f: F, ) -> Result<Transformed<Arc<dyn PhysicalExpr>>, DataFusionError>

Source§

fn transform_up_with_schema<F>( self, schema: &Schema, f: F, ) -> Result<Transformed<Arc<dyn PhysicalExpr>>, DataFusionError>

Source§

fn transform_up_with_lambdas_params( self, f: impl FnMut(Arc<dyn PhysicalExpr>, &HashSet<String>) -> Result<Transformed<Arc<dyn PhysicalExpr>>, DataFusionError>, ) -> Result<Transformed<Arc<dyn PhysicalExpr>>, DataFusionError>

Source§

fn transform_down_with_lambdas_params( self, f: impl FnMut(Arc<dyn PhysicalExpr>, &HashSet<String>) -> Result<Transformed<Arc<dyn PhysicalExpr>>, DataFusionError>, ) -> Result<Transformed<Arc<dyn PhysicalExpr>>, DataFusionError>

Implementors§