Trait datafusion_expr::registry::SerializerRegistry
source · pub trait SerializerRegistry: Send + Sync {
// Required methods
fn serialize_logical_plan(
&self,
node: &dyn UserDefinedLogicalNode,
) -> Result<Vec<u8>>;
fn deserialize_logical_plan(
&self,
name: &str,
bytes: &[u8],
) -> Result<Arc<dyn UserDefinedLogicalNode>>;
}
Expand description
Serializer and deserializer registry for extensions like UserDefinedLogicalNode.
Required Methods§
sourcefn serialize_logical_plan(
&self,
node: &dyn UserDefinedLogicalNode,
) -> Result<Vec<u8>>
fn serialize_logical_plan( &self, node: &dyn UserDefinedLogicalNode, ) -> Result<Vec<u8>>
Serialize this node to a byte array. This serialization should not include input plans.
sourcefn deserialize_logical_plan(
&self,
name: &str,
bytes: &[u8],
) -> Result<Arc<dyn UserDefinedLogicalNode>>
fn deserialize_logical_plan( &self, name: &str, bytes: &[u8], ) -> Result<Arc<dyn UserDefinedLogicalNode>>
Deserialize user defined logical plan node (UserDefinedLogicalNode) from bytes.