Struct arrow::array::Decimal128Builder
source · [−]pub struct Decimal128Builder { /* private fields */ }
Expand description
Array Builder for Decimal128Array
See Decimal128Array
for example.
Implementations
sourceimpl Decimal128Builder
impl Decimal128Builder
sourcepub fn new(capacity: usize, precision: usize, scale: usize) -> Self
pub fn new(capacity: usize, precision: usize, scale: usize) -> Self
Creates a new Decimal128Builder
, capacity
is the number of bytes in the values
array
sourcepub unsafe fn disable_value_validation(&mut self)
pub unsafe fn disable_value_validation(&mut self)
Disable validation
Safety
After disabling validation, caller must ensure that appended values are compatible for the specified precision and scale.
sourcepub fn append_value(&mut self, value: impl Into<i128>) -> Result<()>
pub fn append_value(&mut self, value: impl Into<i128>) -> Result<()>
Appends a decimal value into the builder.
sourcepub fn append_null(&mut self)
pub fn append_null(&mut self)
Append a null value to the array.
sourcepub fn finish(&mut self) -> Decimal128Array
pub fn finish(&mut self) -> Decimal128Array
Builds the Decimal128Array
and reset this builder.
Trait Implementations
sourceimpl ArrayBuilder for Decimal128Builder
impl ArrayBuilder for Decimal128Builder
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 Decimal128Builder
impl Send for Decimal128Builder
impl Sync for Decimal128Builder
impl Unpin for Decimal128Builder
impl UnwindSafe for Decimal128Builder
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