Struct arrow::array::Decimal256Builder
source · [−]pub struct Decimal256Builder { /* private fields */ }
Expand description
Array Builder for Decimal256Array
See Decimal256Array
for example.
Implementations
sourceimpl Decimal256Builder
impl Decimal256Builder
sourcepub fn new(capacity: usize, precision: usize, scale: usize) -> Self
pub fn new(capacity: usize, precision: usize, scale: usize) -> Self
Creates a new Decimal256Builder
, 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: &Decimal256) -> Result<()>
pub fn append_value(&mut self, value: &Decimal256) -> Result<()>
Appends a Decimal256
number into the builder.
Returns an error if value
has different precision, scale or length in bytes than this builder
sourcepub fn append_null(&mut self)
pub fn append_null(&mut self)
Append a null value to the array.
sourcepub fn append_option(&mut self, value: Option<&Decimal256>) -> Result<()>
pub fn append_option(&mut self, value: Option<&Decimal256>) -> Result<()>
Appends an Option<&Decimal256>
into the builder.
sourcepub fn finish(&mut self) -> Decimal256Array
pub fn finish(&mut self) -> Decimal256Array
Builds the Decimal256Array
and reset this builder.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Decimal256Builder
impl Send for Decimal256Builder
impl Sync for Decimal256Builder
impl Unpin for Decimal256Builder
impl UnwindSafe for Decimal256Builder
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