Struct arrow::array::GenericStringBuilder [−][src]
pub struct GenericStringBuilder<OffsetSize: OffsetSizeTrait> { /* fields omitted */ }
Implementations
impl<OffsetSize: StringOffsetSizeTrait> GenericStringBuilder<OffsetSize>
[src]
impl<OffsetSize: StringOffsetSizeTrait> GenericStringBuilder<OffsetSize>
[src]pub fn new(capacity: usize) -> Self
[src]
pub fn new(capacity: usize) -> Self
[src]Creates a new StringBuilder
,
capacity
is the number of bytes of string data to pre-allocate space for in this builder
pub fn with_capacity(item_capacity: usize, data_capacity: usize) -> Self
[src]
pub fn with_capacity(item_capacity: usize, data_capacity: usize) -> Self
[src]Creates a new StringBuilder
,
data_capacity
is the number of bytes of string data to pre-allocate space for in this builder
item_capacity
is the number of items to pre-allocate space for in this builder
pub fn append_value(&mut self, value: impl AsRef<str>) -> Result<()>
[src]
pub fn append_value(&mut self, value: impl AsRef<str>) -> Result<()>
[src]Appends a string into the builder.
Automatically calls the append
method to delimit the string appended in as a
distinct array element.
pub fn append(&mut self, is_valid: bool) -> Result<()>
[src]
pub fn append(&mut self, is_valid: bool) -> Result<()>
[src]Finish the current variable-length list array slot.
pub fn append_null(&mut self) -> Result<()>
[src]
pub fn append_null(&mut self) -> Result<()>
[src]Append a null value to the array.
pub fn finish(&mut self) -> GenericStringArray<OffsetSize>
[src]
pub fn finish(&mut self) -> GenericStringArray<OffsetSize>
[src]Builds the StringArray
and reset this builder.
Trait Implementations
impl<OffsetSize: StringOffsetSizeTrait> ArrayBuilder for GenericStringBuilder<OffsetSize>
[src]
impl<OffsetSize: StringOffsetSizeTrait> ArrayBuilder for GenericStringBuilder<OffsetSize>
[src]fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]Returns the builder as a mutable Any
reference.
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]Returns the boxed builder as a box of Any
.
impl<OffsetSize: Debug + OffsetSizeTrait> Debug for GenericStringBuilder<OffsetSize>
[src]
impl<OffsetSize: Debug + OffsetSizeTrait> Debug for GenericStringBuilder<OffsetSize>
[src]Auto Trait Implementations
impl<OffsetSize> RefUnwindSafe for GenericStringBuilder<OffsetSize> where
OffsetSize: RefUnwindSafe,
OffsetSize: RefUnwindSafe,
impl<OffsetSize> Send for GenericStringBuilder<OffsetSize>
impl<OffsetSize> Sync for GenericStringBuilder<OffsetSize>
impl<OffsetSize> Unpin for GenericStringBuilder<OffsetSize> where
OffsetSize: Unpin,
OffsetSize: Unpin,
impl<OffsetSize> UnwindSafe for GenericStringBuilder<OffsetSize> where
OffsetSize: UnwindSafe,
OffsetSize: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,