Trait mz_persist_types::columnar::sealed::ColumnRef

source ·
pub trait ColumnRef<Cfg>:
    Sized
    + Send
    + Sync {
    // Required methods
    fn cfg(&self) -> &Cfg;
    fn len(&self) -> usize;
    fn to_arrow(&self) -> Arc<dyn Array>;
    fn from_arrow(cfg: &Cfg, array: &dyn Array) -> Result<Self, String>;
}
Expand description

A common trait implemented by all Data::Col types.

Required Methods§

source

fn cfg(&self) -> &Cfg

Returns the super::ColumnCfg for this column.

source

fn len(&self) -> usize

Returns the number of elements in this column.

source

fn to_arrow(&self) -> Arc<dyn Array>

Returns this column as an arrow Array.

source

fn from_arrow(cfg: &Cfg, array: &dyn Array) -> Result<Self, String>

Constructs the column from an arrow Array.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ColumnRef<()> for BooleanArray

source§

fn cfg(&self) -> &()

source§

fn len(&self) -> usize

source§

fn to_arrow(&self) -> Arc<dyn Array>

source§

fn from_arrow(_cfg: &(), array: &dyn Array) -> Result<Self, String>

source§

impl ColumnRef<()> for PrimitiveArray<Float32Type>

source§

fn cfg(&self) -> &()

source§

fn len(&self) -> usize

source§

fn to_arrow(&self) -> Arc<dyn Array>

source§

fn from_arrow(_cfg: &(), array: &dyn Array) -> Result<Self, String>

source§

impl ColumnRef<()> for PrimitiveArray<Float64Type>

source§

fn cfg(&self) -> &()

source§

fn len(&self) -> usize

source§

fn to_arrow(&self) -> Arc<dyn Array>

source§

fn from_arrow(_cfg: &(), array: &dyn Array) -> Result<Self, String>

source§

impl ColumnRef<()> for PrimitiveArray<Int8Type>

source§

fn cfg(&self) -> &()

source§

fn len(&self) -> usize

source§

fn to_arrow(&self) -> Arc<dyn Array>

source§

fn from_arrow(_cfg: &(), array: &dyn Array) -> Result<Self, String>

source§

impl ColumnRef<()> for PrimitiveArray<Int16Type>

source§

fn cfg(&self) -> &()

source§

fn len(&self) -> usize

source§

fn to_arrow(&self) -> Arc<dyn Array>

source§

fn from_arrow(_cfg: &(), array: &dyn Array) -> Result<Self, String>

source§

impl ColumnRef<()> for PrimitiveArray<Int32Type>

source§

fn cfg(&self) -> &()

source§

fn len(&self) -> usize

source§

fn to_arrow(&self) -> Arc<dyn Array>

source§

fn from_arrow(_cfg: &(), array: &dyn Array) -> Result<Self, String>

source§

impl ColumnRef<()> for PrimitiveArray<Int64Type>

source§

fn cfg(&self) -> &()

source§

fn len(&self) -> usize

source§

fn to_arrow(&self) -> Arc<dyn Array>

source§

fn from_arrow(_cfg: &(), array: &dyn Array) -> Result<Self, String>

source§

impl ColumnRef<()> for PrimitiveArray<UInt8Type>

source§

fn cfg(&self) -> &()

source§

fn len(&self) -> usize

source§

fn to_arrow(&self) -> Arc<dyn Array>

source§

fn from_arrow(_cfg: &(), array: &dyn Array) -> Result<Self, String>

source§

impl ColumnRef<()> for PrimitiveArray<UInt16Type>

source§

fn cfg(&self) -> &()

source§

fn len(&self) -> usize

source§

fn to_arrow(&self) -> Arc<dyn Array>

source§

fn from_arrow(_cfg: &(), array: &dyn Array) -> Result<Self, String>

source§

impl ColumnRef<()> for PrimitiveArray<UInt32Type>

source§

fn cfg(&self) -> &()

source§

fn len(&self) -> usize

source§

fn to_arrow(&self) -> Arc<dyn Array>

source§

fn from_arrow(_cfg: &(), array: &dyn Array) -> Result<Self, String>

source§

impl ColumnRef<()> for PrimitiveArray<UInt64Type>

source§

fn cfg(&self) -> &()

source§

fn len(&self) -> usize

source§

fn to_arrow(&self) -> Arc<dyn Array>

source§

fn from_arrow(_cfg: &(), array: &dyn Array) -> Result<Self, String>

source§

impl ColumnRef<()> for BooleanBuffer

source§

fn cfg(&self) -> &()

source§

fn len(&self) -> usize

source§

fn to_arrow(&self) -> Arc<dyn Array>

source§

fn from_arrow(_cfg: &(), array: &dyn Array) -> Result<Self, String>

source§

impl ColumnRef<()> for BinaryArray

source§

fn cfg(&self) -> &()

source§

fn len(&self) -> usize

source§

fn to_arrow(&self) -> Arc<dyn Array>

source§

fn from_arrow(_cfg: &(), array: &dyn Array) -> Result<Self, String>

source§

impl ColumnRef<()> for StringArray

source§

fn cfg(&self) -> &()

source§

fn len(&self) -> usize

source§

fn to_arrow(&self) -> Arc<dyn Array>

source§

fn from_arrow(_cfg: &(), array: &dyn Array) -> Result<Self, String>

Implementors§