Trait vortex_array::builders::ArrayBuilder

source ·
pub trait ArrayBuilder: Send {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn as_any_mut(&mut self) -> &mut dyn Any;
    fn dtype(&self) -> &DType;
    fn len(&self) -> usize;
    fn append_zeros(&mut self, n: usize);
    fn append_nulls(&mut self, n: usize);
    fn finish(&mut self) -> VortexResult<ArrayData>;

    // Provided methods
    fn is_empty(&self) -> bool { ... }
    fn append_zero(&mut self) { ... }
    fn append_null(&mut self) { ... }
}

Required Methods§

source

fn as_any(&self) -> &dyn Any

source

fn as_any_mut(&mut self) -> &mut dyn Any

source

fn dtype(&self) -> &DType

source

fn len(&self) -> usize

source

fn append_zeros(&mut self, n: usize)

Appends n “zero” values to the array.

source

fn append_nulls(&mut self, n: usize)

Appends n “null” values to the array.

source

fn finish(&mut self) -> VortexResult<ArrayData>

Provided Methods§

source

fn is_empty(&self) -> bool

source

fn append_zero(&mut self)

Append a “zero” value to the array.

source

fn append_null(&mut self)

Append a “null” value to the array.

Implementors§