Skip to main content

PhysicalExprDecode

Trait PhysicalExprDecode 

Source
pub trait PhysicalExprDecode {
    // Required method
    fn decode(
        &self,
        node: &PhysicalExprNode,
        schema: &Schema,
    ) -> Result<Arc<dyn PhysicalExpr>>;
}
Available on crate feature proto only.
Expand description

Internal dispatch trait. Implementors live in datafusion-proto. Expression authors should use PhysicalExprDecodeCtx instead of calling this directly.

Required Methods§

Source

fn decode( &self, node: &PhysicalExprNode, schema: &Schema, ) -> Result<Arc<dyn PhysicalExpr>>

Decode a proto node into a concrete PhysicalExpr. The schema is passed alongside so implementations can support recursive children and rebind the context per call (e.g. for nested plans).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§