pub struct AnyValueBufferBatched<'a> { /* private fields */ }Available on crate features
object or rows only.Expand description
An AnyValueBuffer that converts nested values in batches (as each value retains
a Series until finally converted, this can prevent excessive peak memory use).
Implementations§
Source§impl<'a> AnyValueBufferBatched<'a>
impl<'a> AnyValueBufferBatched<'a>
pub fn new(dtype: &DataType, capacity: usize) -> Self
pub fn add(&mut self, val: AnyValue<'_>) -> Option<()>
pub fn add_fallible(&mut self, val: &AnyValue<'a>) -> PolarsResult<()>
Sourcepub fn needs_flush(&self) -> bool
pub fn needs_flush(&self) -> bool
Whether a full batch of nested values is ready to flush.
Sourcepub fn flush(&mut self) -> PolarsResult<()>
pub fn flush(&mut self) -> PolarsResult<()>
Converts the buffered nested values, extending the converted SeriesBuilder.
Frees the memory used by the buffered values.
pub fn into_series(self) -> PolarsResult<Series>
Sourcepub fn into_column(
self,
name: PlSmallStr,
height: usize,
) -> PolarsResult<Column>
pub fn into_column( self, name: PlSmallStr, height: usize, ) -> PolarsResult<Column>
Convert into a column of height rows.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for AnyValueBufferBatched<'a>
impl<'a> !Sync for AnyValueBufferBatched<'a>
impl<'a> !UnwindSafe for AnyValueBufferBatched<'a>
impl<'a> Freeze for AnyValueBufferBatched<'a>
impl<'a> Send for AnyValueBufferBatched<'a>
impl<'a> Unpin for AnyValueBufferBatched<'a>
impl<'a> UnsafeUnpin for AnyValueBufferBatched<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more