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§
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
fn dtype(&self) -> &DType
fn len(&self) -> usize
sourcefn append_zeros(&mut self, n: usize)
fn append_zeros(&mut self, n: usize)
Appends n “zero” values to the array.
sourcefn append_nulls(&mut self, n: usize)
fn append_nulls(&mut self, n: usize)
Appends n “null” values to the array.
fn finish(&mut self) -> VortexResult<ArrayData>
Provided Methods§
fn is_empty(&self) -> bool
sourcefn append_zero(&mut self)
fn append_zero(&mut self)
Append a “zero” value to the array.
sourcefn append_null(&mut self)
fn append_null(&mut self)
Append a “null” value to the array.