Struct arrow::array::PrimitiveBuilder [−][src]
pub struct PrimitiveBuilder<T: ArrowPrimitiveType> { /* fields omitted */ }
Expand description
Array builder for fixed-width primitive types
Implementations
Returns the capacity of this builder measured in slots of type T
Appends a value of type T
into the builder
Appends a null slot into the builder
Appends an Option<T>
into the builder
Appends a slice of type T
into the builder
Appends values from a slice of type T
and a validity boolean slice
pub unsafe fn append_trusted_len_iter(
&mut self,
iter: impl IntoIterator<Item = T::Native>
) -> Result<()>
pub unsafe fn append_trusted_len_iter(
&mut self,
iter: impl IntoIterator<Item = T::Native>
) -> Result<()>
Appends values from a trusted length iterator.
Safety
This requires the iterator be a trusted length. This could instead require
the iterator implement TrustedLen
once that is stabilized.
Builds the PrimitiveArray
and reset this builder.
Builds the DictionaryArray
and reset this builder.
Trait Implementations
Returns the builder as a mutable Any
reference.
Returns the boxed builder as a box of Any
.