Struct arrow::array::DecimalBuilder
source · [−]pub struct DecimalBuilder { /* private fields */ }
Expand description
Array Builder for DecimalArray
See DecimalArray
for example.
Implementations
sourceimpl DecimalBuilder
impl DecimalBuilder
sourcepub fn new(capacity: usize, precision: usize, scale: usize) -> Self
pub fn new(capacity: usize, precision: usize, scale: usize) -> Self
Creates a new BinaryBuilder
, capacity
is the number of bytes in the values
array
sourcepub fn append_value(&mut self, value: i128) -> Result<()>
pub fn append_value(&mut self, value: i128) -> 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) -> DecimalArray
pub fn finish(&mut self) -> DecimalArray
Builds the DecimalArray
and reset this builder.
Trait Implementations
sourceimpl ArrayBuilder for DecimalBuilder
impl ArrayBuilder for DecimalBuilder
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 DecimalBuilder
impl Send for DecimalBuilder
impl Sync for DecimalBuilder
impl Unpin for DecimalBuilder
impl UnwindSafe for DecimalBuilder
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