[][src]Struct polars::chunked_array::builder::PrimitiveChunkedBuilder

pub struct PrimitiveChunkedBuilder<T> where
    T: ArrowPrimitiveType
{ pub builder: PrimitiveBuilder<T>, // some fields omitted }

Fields

builder: PrimitiveBuilder<T>

Implementations

impl<T> PrimitiveChunkedBuilder<T> where
    T: ArrowPrimitiveType
[src]

pub fn new(name: &str, capacity: usize) -> Self[src]

pub fn new_from_iter(
    self,
    it: impl Iterator<Item = Option<T::Native>>
) -> ChunkedArray<T>
[src]

pub fn finish(self) -> ChunkedArray<T>[src]

Methods from Deref<Target = PrimitiveBuilder<T>>

pub fn capacity(&self) -> usize[src]

Returns the capacity of this builder measured in slots of type T

pub fn append_value(
    &mut self,
    v: <T as ArrowPrimitiveType>::Native
) -> Result<(), ArrowError>
[src]

Appends a value of type T into the builder

pub fn append_null(&mut self) -> Result<(), ArrowError>[src]

Appends a null slot into the builder

pub fn append_option(
    &mut self,
    v: Option<<T as ArrowPrimitiveType>::Native>
) -> Result<(), ArrowError>
[src]

Appends an Option<T> into the builder

pub fn append_slice(
    &mut self,
    v: &[<T as ArrowPrimitiveType>::Native]
) -> Result<(), ArrowError>
[src]

Appends a slice of type T into the builder

pub fn append_values(
    &mut self,
    values: &[<T as ArrowPrimitiveType>::Native],
    is_valid: &[bool]
) -> Result<(), ArrowError>
[src]

Appends values from a slice of type T and a validity boolean slice

pub fn finish(&mut self) -> PrimitiveArray<T>[src]

Builds the PrimitiveArray and reset this builder.

pub fn finish_dict(
    &mut self,
    values: Arc<dyn Array + 'static>
) -> DictionaryArray<T>
[src]

Builds the DictionaryArray and reset this builder.

Trait Implementations

impl<T: ArrowPrimitiveType> Deref for PrimitiveChunkedBuilder<T>[src]

type Target = PrimitiveBuilder<T>

The resulting type after dereferencing.

impl<T: ArrowPrimitiveType> DerefMut for PrimitiveChunkedBuilder<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for PrimitiveChunkedBuilder<T> where
    T: RefUnwindSafe

impl<T> Send for PrimitiveChunkedBuilder<T> where
    T: Send

impl<T> Sync for PrimitiveChunkedBuilder<T> where
    T: Sync

impl<T> Unpin for PrimitiveChunkedBuilder<T> where
    T: Unpin

impl<T> UnwindSafe for PrimitiveChunkedBuilder<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,