[−][src]Struct polars::chunked_array::builder::PrimitiveChunkedBuilder
Fields
builder: PrimitiveBuilder<T>
Implementations
impl<T> PrimitiveChunkedBuilder<T> where
T: ArrowPrimitiveType,
[src]
T: ArrowPrimitiveType,
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]
self,
it: impl Iterator<Item = Option<T::Native>>
) -> ChunkedArray<T>
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]
&mut self,
v: <T as ArrowPrimitiveType>::Native
) -> Result<(), ArrowError>
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]
&mut self,
v: Option<<T as ArrowPrimitiveType>::Native>
) -> Result<(), ArrowError>
Appends an Option<T>
into the builder
pub fn append_slice(
&mut self,
v: &[<T as ArrowPrimitiveType>::Native]
) -> Result<(), ArrowError>
[src]
&mut self,
v: &[<T as ArrowPrimitiveType>::Native]
) -> Result<(), ArrowError>
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]
&mut self,
values: &[<T as ArrowPrimitiveType>::Native],
is_valid: &[bool]
) -> Result<(), ArrowError>
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]
&mut self,
values: Arc<dyn Array + 'static>
) -> DictionaryArray<T>
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.
fn deref(&self) -> &Self::Target
[src]
impl<T: ArrowPrimitiveType> DerefMut for PrimitiveChunkedBuilder<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for PrimitiveChunkedBuilder<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for PrimitiveChunkedBuilder<T> where
T: Send,
T: Send,
impl<T> Sync for PrimitiveChunkedBuilder<T> where
T: Sync,
T: Sync,
impl<T> Unpin for PrimitiveChunkedBuilder<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for PrimitiveChunkedBuilder<T> where
T: UnwindSafe,
T: 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,
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.
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.
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>,