Type Alias DecimalArrayBuilder

Source
pub type DecimalArrayBuilder = PrimitiveArrayBuilder<Decimal>;

Aliased Type§

struct DecimalArrayBuilder {
    bitmap: BitmapBuilder,
    data: Vec<Decimal>,
}

Fields§

§bitmap: BitmapBuilder§data: Vec<Decimal>

Trait Implementations

Source§

impl<T: PrimitiveArrayItemType> ArrayBuilder for PrimitiveArrayBuilder<T>

Source§

type ArrayType = PrimitiveArray<T>

Corresponding Array of this builder, which is reciprocal to ArrayBuilder.
Source§

fn new(capacity: usize) -> Self

Create a new builder with capacity. TODO: remove this function from the trait. Let it be methods of each concrete builders.
Source§

fn with_type(capacity: usize, ty: DataType) -> Self

Panics Read more
Source§

fn append_n(&mut self, n: usize, value: Option<T>)

Append a value multiple times. Read more
Source§

fn append_array(&mut self, other: &PrimitiveArray<T>)

Append an array to builder.
Source§

fn pop(&mut self) -> Option<()>

Pop an element from the builder. Read more
Source§

fn len(&self) -> usize

Return the number of elements in the builder.
Source§

fn finish(self) -> PrimitiveArray<T>

Finish build and return a new array.
Source§

fn append(&mut self, value: Option<<Self::ArrayType as Array>::RefItem<'_>>)

Append a value to builder.
Source§

fn append_owned(&mut self, value: Option<<Self::ArrayType as Array>::OwnedItem>)

Append an owned value to builder.
Source§

fn append_null(&mut self)

Source§

fn append_array_element(&mut self, other: &Self::ArrayType, idx: usize)

Append an element in another array into builder.
Source§

fn is_empty(&self) -> bool

Return true if the array has a length of 0.
Source§

impl<T: Clone + PrimitiveArrayItemType> Clone for PrimitiveArrayBuilder<T>

Source§

fn clone(&self) -> PrimitiveArrayBuilder<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug + PrimitiveArrayItemType> Debug for PrimitiveArrayBuilder<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: PrimitiveArrayItemType> EstimateSize for PrimitiveArrayBuilder<T>

Source§

fn estimated_heap_size(&self) -> usize

The estimated heap size of the current struct in bytes.
§

fn estimated_size(&self) -> usize
where Self: Sized,

The estimated total size of the current struct in bytes, including the estimated_heap_size and the size of Self.