Struct vortex_array::builders::Utf8Builder
source · pub struct Utf8Builder { /* private fields */ }
Implementations§
source§impl Utf8Builder
impl Utf8Builder
pub fn with_capacity(nullability: Nullability, capacity: usize) -> Self
pub fn append_value<S: AsRef<str>>(&mut self, value: S)
pub fn append_option<S: AsRef<str>>(&mut self, value: Option<S>)
Trait Implementations§
source§impl ArrayBuilder for Utf8Builder
impl ArrayBuilder for Utf8Builder
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
fn dtype(&self) -> &DType
fn len(&self) -> usize
source§fn append_zeros(&mut self, n: usize)
fn append_zeros(&mut self, n: usize)
Appends n “zero” values to the array.
source§fn append_nulls(&mut self, n: usize)
fn append_nulls(&mut self, n: usize)
Appends n “null” values to the array.
fn finish(&mut self) -> VortexResult<ArrayData>
fn is_empty(&self) -> bool
source§fn append_zero(&mut self)
fn append_zero(&mut self)
Append a “zero” value to the array.
source§fn append_null(&mut self)
fn append_null(&mut self)
Append a “null” value to the array.
Auto Trait Implementations§
impl Freeze for Utf8Builder
impl RefUnwindSafe for Utf8Builder
impl Send for Utf8Builder
impl Sync for Utf8Builder
impl Unpin for Utf8Builder
impl UnwindSafe for Utf8Builder
Blanket Implementations§
source§impl<T> ArrayBuilderExt for Twhere
T: ArrayBuilder + ?Sized,
impl<T> ArrayBuilderExt for Twhere
T: ArrayBuilder + ?Sized,
source§fn append_scalar(&mut self, scalar: &Scalar) -> VortexResult<()>
fn append_scalar(&mut self, scalar: &Scalar) -> VortexResult<()>
A generic function to append a scalar to the builder.
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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