pub type SerialArrayBuilder = PrimitiveArrayBuilder<Serial>;
Aliased Type§
struct SerialArrayBuilder {
bitmap: BitmapBuilder,
data: Vec<Serial>,
}
Fields§
§bitmap: BitmapBuilder
§data: Vec<Serial>
Trait Implementations
Source§impl<T: PrimitiveArrayItemType> ArrayBuilder for PrimitiveArrayBuilder<T>
impl<T: PrimitiveArrayItemType> ArrayBuilder for PrimitiveArrayBuilder<T>
Source§type ArrayType = PrimitiveArray<T>
type ArrayType = PrimitiveArray<T>
Corresponding
Array
of this builder, which is reciprocal to ArrayBuilder
.Source§fn new(capacity: usize) -> Self
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 append_array(&mut self, other: &PrimitiveArray<T>)
fn append_array(&mut self, other: &PrimitiveArray<T>)
Append an array to builder.
Source§fn finish(self) -> PrimitiveArray<T>
fn finish(self) -> PrimitiveArray<T>
Finish build and return a new array.
Source§fn append(&mut self, value: Option<<Self::ArrayType as Array>::RefItem<'_>>)
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>)
fn append_owned(&mut self, value: Option<<Self::ArrayType as Array>::OwnedItem>)
Append an owned value to builder.
fn append_null(&mut self)
Source§fn append_array_element(&mut self, other: &Self::ArrayType, idx: usize)
fn append_array_element(&mut self, other: &Self::ArrayType, idx: usize)
Append an element in another array into builder.
Source§impl<T: Clone + PrimitiveArrayItemType> Clone for PrimitiveArrayBuilder<T>
impl<T: Clone + PrimitiveArrayItemType> Clone for PrimitiveArrayBuilder<T>
Source§fn clone(&self) -> PrimitiveArrayBuilder<T>
fn clone(&self) -> PrimitiveArrayBuilder<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug + PrimitiveArrayItemType> Debug for PrimitiveArrayBuilder<T>
impl<T: Debug + PrimitiveArrayItemType> Debug for PrimitiveArrayBuilder<T>
Source§impl<T: PrimitiveArrayItemType> EstimateSize for PrimitiveArrayBuilder<T>
impl<T: PrimitiveArrayItemType> EstimateSize for PrimitiveArrayBuilder<T>
Source§fn estimated_heap_size(&self) -> usize
fn estimated_heap_size(&self) -> usize
The estimated heap size of the current struct in bytes.
§fn estimated_size(&self) -> usizewhere
Self: Sized,
fn estimated_size(&self) -> usizewhere
Self: Sized,
The estimated total size of the current struct in bytes, including the
estimated_heap_size
and the size of Self
.