Trait datafusion_proto::logical_plan::AsLogicalPlan

source ·
pub trait AsLogicalPlan:
    Debug
    + Send
    + Sync
    + Clone {
    // Required methods
    fn try_decode(buf: &[u8]) -> Result<Self>
       where Self: Sized;
    fn try_encode<B>(&self, buf: &mut B) -> Result<()>
       where B: BufMut,
             Self: Sized;
    fn try_into_logical_plan(
        &self,
        ctx: &SessionContext,
        extension_codec: &dyn LogicalExtensionCodec,
    ) -> Result<LogicalPlan>;
    fn try_from_logical_plan(
        plan: &LogicalPlan,
        extension_codec: &dyn LogicalExtensionCodec,
    ) -> Result<Self>
       where Self: Sized;
}

Required Methods§

source

fn try_decode(buf: &[u8]) -> Result<Self>
where Self: Sized,

source

fn try_encode<B>(&self, buf: &mut B) -> Result<()>
where B: BufMut, Self: Sized,

source

fn try_into_logical_plan( &self, ctx: &SessionContext, extension_codec: &dyn LogicalExtensionCodec, ) -> Result<LogicalPlan>

source

fn try_from_logical_plan( plan: &LogicalPlan, extension_codec: &dyn LogicalExtensionCodec, ) -> Result<Self>
where Self: Sized,

Object Safety§

This trait is not object safe.

Implementors§