Struct arrow::array::FixedSizeBinaryBuilder
source · [−]pub struct FixedSizeBinaryBuilder { /* private fields */ }
Implementations
sourceimpl FixedSizeBinaryBuilder
impl FixedSizeBinaryBuilder
sourcepub fn new(capacity: usize, byte_width: i32) -> Self
pub fn new(capacity: usize, byte_width: i32) -> Self
Creates a new BinaryBuilder
, capacity
is the number of bytes in the values
array
sourcepub fn append_value(&mut self, value: impl AsRef<[u8]>) -> Result<()>
pub fn append_value(&mut self, value: impl AsRef<[u8]>) -> Result<()>
Appends a byte slice into the builder.
Automatically calls the append
method to delimit the slice appended in as a
distinct array element.
sourcepub fn append_null(&mut self) -> Result<()>
pub fn append_null(&mut self) -> Result<()>
Append a null value to the array.
sourcepub fn finish(&mut self) -> FixedSizeBinaryArray
pub fn finish(&mut self) -> FixedSizeBinaryArray
Builds the FixedSizeBinaryArray
and reset this builder.
Trait Implementations
sourceimpl ArrayBuilder for FixedSizeBinaryBuilder
impl ArrayBuilder for FixedSizeBinaryBuilder
sourcefn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Returns the builder as a mutable Any
reference.
sourcefn into_box_any(self: Box<Self>) -> Box<dyn Any>
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
Returns the boxed builder as a box of Any
.
Auto Trait Implementations
impl RefUnwindSafe for FixedSizeBinaryBuilder
impl Send for FixedSizeBinaryBuilder
impl Sync for FixedSizeBinaryBuilder
impl Unpin for FixedSizeBinaryBuilder
impl UnwindSafe for FixedSizeBinaryBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more