Skip to main content

ScalarFnPlugin

Trait ScalarFnPlugin 

Source
pub trait ScalarFnPlugin:
    'static
    + Send
    + Sync {
    // Required methods
    fn id(&self) -> ScalarFnId;
    fn deserialize(
        &self,
        metadata: &[u8],
        session: &VortexSession,
    ) -> VortexResult<ScalarFnRef>;
}
Expand description

Registry trait for ID-based deserialization of scalar functions.

Plugins are registered in the session by their ScalarFnId. When a serialized scalar function is encountered, the session resolves the ID to the plugin and calls deserialize to reconstruct the value as a ScalarFnRef.

Required Methods§

Source

fn id(&self) -> ScalarFnId

Returns the ID for this scalar function.

Source

fn deserialize( &self, metadata: &[u8], session: &VortexSession, ) -> VortexResult<ScalarFnRef>

Deserialize a scalar function from serialized metadata.

Trait Implementations§

Source§

impl Debug for dyn ScalarFnPlugin

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§