deltalake_core::kernel::scalars

Trait ScalarExt

Source
pub trait ScalarExt: Sized {
    // Required methods
    fn serialize(&self) -> String;
    fn serialize_encoded(&self) -> String;
    fn from_array(arr: &dyn Array, index: usize) -> Option<Self>;
}
Expand description

Auxiliary methods for dealing with kernel scalars

Required Methods§

Source

fn serialize(&self) -> String

Serialize to string

Source

fn serialize_encoded(&self) -> String

Serialize to string for use in hive partition file names

Source

fn from_array(arr: &dyn Array, index: usize) -> Option<Self>

Create a Scalar from an arrow array row

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ScalarExt for Scalar

Source§

fn serialize(&self) -> String

Serializes this scalar as a string.

Source§

fn serialize_encoded(&self) -> String

Serializes this scalar as a string for use in hive partition file names.

Source§

fn from_array(arr: &dyn Array, index: usize) -> Option<Self>

Create a Scalar form a row in an arrow array.

Implementors§