Struct polars_arrow::builder::PrimitiveArrayBuilder [−][src]
An arrow primitive builder that is faster than Arrow's native builder because it uses Rust Vec's as buffer
Implementations
impl<T> PrimitiveArrayBuilder<T> where
T: ArrowPrimitiveType,
T::Native: Default, [src]
T: ArrowPrimitiveType,
T::Native: Default,
pub fn new(capacity: usize) -> Self[src]
pub fn new_no_nulls(capacity: usize) -> Self[src]
pub fn append_value(&mut self, v: T::Native)[src]
Appends a value of type T::Native into the builder
pub fn append_slice(&mut self, other: &[T::Native])[src]
pub fn append_null(&mut self)[src]
Appends a null slot into the builder
pub fn shrink_to_fit(&mut self)[src]
pub fn finish_with_null_buffer(&mut self, buffer: Buffer) -> PrimitiveArray<T>[src]
pub fn finish(&mut self) -> PrimitiveArray<T>[src]
Build the array and reset this Builder
Trait Implementations
impl<T> ArrayBuilder for PrimitiveArrayBuilder<T> where
T: ArrowPrimitiveType, [src]
T: ArrowPrimitiveType,
Auto Trait Implementations
impl<T> RefUnwindSafe for PrimitiveArrayBuilder<T> where
<T as ArrowPrimitiveType>::Native: RefUnwindSafe, [src]
<T as ArrowPrimitiveType>::Native: RefUnwindSafe,
impl<T> Send for PrimitiveArrayBuilder<T>[src]
impl<T> Sync for PrimitiveArrayBuilder<T>[src]
impl<T> Unpin for PrimitiveArrayBuilder<T> where
<T as ArrowPrimitiveType>::Native: Unpin, [src]
<T as ArrowPrimitiveType>::Native: Unpin,
impl<T> UnwindSafe for PrimitiveArrayBuilder<T> where
<T as ArrowPrimitiveType>::Native: UnwindSafe, [src]
<T as ArrowPrimitiveType>::Native: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,