proof_of_sql::base::database

Trait ToArrow

source
pub trait ToArrow {
    // Required methods
    fn to_type(&self) -> DataType;
    fn to_array(self) -> Arc<dyn Array>;
}
Expand description

Extension trait for Vec<T> to convert it to an Arrow array

Required Methods§

source

fn to_type(&self) -> DataType

Returns the equivalent Arrow type

source

fn to_array(self) -> Arc<dyn Array>

Converts the Vec<T> to an Arrow ArrayRef.

Implementations on Foreign Types§

source§

impl ToArrow for Vec<&str>

source§

fn to_type(&self) -> DataType

source§

fn to_array(self) -> Arc<dyn Array>

source§

impl ToArrow for Vec<bool>

source§

fn to_type(&self) -> DataType

source§

fn to_array(self) -> Arc<dyn Array>

source§

impl ToArrow for Vec<i16>

source§

fn to_type(&self) -> DataType

source§

fn to_array(self) -> Arc<dyn Array>

source§

impl ToArrow for Vec<i32>

source§

fn to_type(&self) -> DataType

source§

fn to_array(self) -> Arc<dyn Array>

source§

impl ToArrow for Vec<i64>

source§

fn to_type(&self) -> DataType

source§

fn to_array(self) -> Arc<dyn Array>

source§

impl ToArrow for Vec<i128>

source§

fn to_array(self) -> Arc<dyn Array>

§Panics

Will panic if the conversion to a Decimal128Array fails, which can happen if the data exceeds the specified precision and scale (38, 0). Ensure that all values are within the valid range for the Decimal128 type.

source§

fn to_type(&self) -> DataType

source§

impl ToArrow for Vec<String>

source§

fn to_type(&self) -> DataType

source§

fn to_array(self) -> Arc<dyn Array>

source§

impl ToArrow for Vec<Time>

source§

fn to_type(&self) -> DataType

source§

fn to_array(self) -> Arc<dyn Array>

Implementors§