Skip to main content

PhysicalExprEncode

Trait PhysicalExprEncode 

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

Internal dispatch trait. Implementors live in datafusion-proto and wrap the existing PhysicalExtensionCodec + PhysicalProtoConverterExtension plumbing. Expression authors should use PhysicalExprEncodeCtx instead of calling this directly.

Required Methods§

Source

fn encode(&self, expr: &Arc<dyn PhysicalExpr>) -> Result<PhysicalExprNode>

Encode an expression to a protobuf node.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§