ColumnArray

Trait ColumnArray 

Source
pub trait ColumnArray: Debug {
    // Required methods
    fn len(&self) -> usize;
    fn dtype(&self) -> Dtype;
    fn get(&self, index: usize) -> Option<CellValue>;
    fn null_count(&self) -> usize;
    fn as_any(&self) -> &dyn Any;
    fn to_json(&self) -> Vec<Value>;

    // Provided methods
    fn non_null_count(&self) -> usize { ... }
    fn mean(&self) -> Option<f64> { ... }
    fn sum(&self) -> Option<f64> { ... }
    fn min(&self) -> Option<f64> { ... }
    fn max(&self) -> Option<f64> { ... }
    fn is_empty(&self) -> bool { ... }
}

Required Methods§

Source

fn len(&self) -> usize

Source

fn dtype(&self) -> Dtype

Source

fn get(&self, index: usize) -> Option<CellValue>

Source

fn null_count(&self) -> usize

Source

fn as_any(&self) -> &dyn Any

Source

fn to_json(&self) -> Vec<Value>

Provided Methods§

Source

fn non_null_count(&self) -> usize

Source

fn mean(&self) -> Option<f64>

Source

fn sum(&self) -> Option<f64>

Source

fn min(&self) -> Option<f64>

Source

fn max(&self) -> Option<f64>

Source

fn is_empty(&self) -> bool

Trait Implementations§

Source§

impl From<&[i64]> for Box<dyn ColumnArray>

Source§

fn from(data: &[i64]) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Option<String>>> for Box<dyn ColumnArray>

Source§

fn from(data: Vec<Option<String>>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Option<bool>>> for Box<dyn ColumnArray>

Source§

fn from(data: Vec<Option<bool>>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Option<f64>>> for Box<dyn ColumnArray>

Source§

fn from(data: Vec<Option<f64>>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Option<i64>>> for Box<dyn ColumnArray>

Source§

fn from(data: Vec<Option<i64>>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<String>> for Box<dyn ColumnArray>

Source§

fn from(data: Vec<String>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<bool>> for Box<dyn ColumnArray>

Source§

fn from(data: Vec<bool>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<f64>> for Box<dyn ColumnArray>

Source§

fn from(data: Vec<f64>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<i64>> for Box<dyn ColumnArray>

Source§

fn from(data: Vec<i64>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<usize>> for Box<dyn ColumnArray>

Source§

fn from(data: Vec<usize>) -> Self

Converts to this type from the input type.

Implementors§