Struct arrow::array::Decimal256Array
source · [−]pub struct Decimal256Array { /* private fields */ }
Implementations
sourceimpl<'a> Decimal256Array
impl<'a> Decimal256Array
sourcepub fn iter(&'a self) -> Decimal256Iter<'a>
pub fn iter(&'a self) -> Decimal256Iter<'a>
constructs a new iterator
Trait Implementations
sourceimpl Array for Decimal256Array
impl Array for Decimal256Array
sourcefn data_ref(&self) -> &ArrayData
fn data_ref(&self) -> &ArrayData
Returns a reference-counted pointer to the underlying data of this array.
sourcefn slice(&self, offset: usize, length: usize) -> ArrayRef
fn slice(&self, offset: usize, length: usize) -> ArrayRef
Returns a zero-copy slice of this array with the indicated offset and length. Read more
sourcefn offset(&self) -> usize
fn offset(&self) -> usize
Returns the offset into the underlying data used by this array(-slice).
Note that the underlying data can be shared by many arrays.
This defaults to 0
. Read more
sourcefn is_null(&self, index: usize) -> bool
fn is_null(&self, index: usize) -> bool
Returns whether the element at index
is null.
When using this function on a slice, the index is relative to the slice. Read more
sourcefn is_valid(&self, index: usize) -> bool
fn is_valid(&self, index: usize) -> bool
Returns whether the element at index
is not null.
When using this function on a slice, the index is relative to the slice. Read more
sourcefn null_count(&self) -> usize
fn null_count(&self) -> usize
Returns the total number of null values in this array. Read more
sourcefn get_buffer_memory_size(&self) -> usize
fn get_buffer_memory_size(&self) -> usize
Returns the total number of bytes of memory pointed to by this array. The buffers store bytes in the Arrow memory format, and include the data as well as the validity map. Read more
sourcefn get_array_memory_size(&self) -> usize
fn get_array_memory_size(&self) -> usize
Returns the total number of bytes of memory occupied physically by this array.
This value will always be greater than returned by get_buffer_memory_size()
and
includes the overhead of the data structures that contain the pointers to the various buffers. Read more
sourceimpl<'a> ArrayAccessor for &'a Decimal256Array
impl<'a> ArrayAccessor for &'a Decimal256Array
sourceimpl BasicDecimalArray<Decimal256, Decimal256Array> for Decimal256Array
impl BasicDecimalArray<Decimal256, Decimal256Array> for Decimal256Array
const VALUE_LENGTH: i32 = 32i32
const DEFAULT_TYPE: DataType = _
const MAX_PRECISION: usize = 76usize
const MAX_SCALE: usize = 76usize
fn data(&self) -> &ArrayData
sourcefn precision(&self) -> usize
fn precision(&self) -> usize
Return the precision (total digits) that can be stored by this array
sourcefn scale(&self) -> usize
fn scale(&self) -> usize
Return the scale (digits after the decimal) that can be stored by this array
sourcefn validate_decimal_precision(&self, precision: usize) -> Result<()>
fn validate_decimal_precision(&self, precision: usize) -> Result<()>
Validates decimal values in this array can be properly interpreted with the specified precision. Read more
sourceunsafe fn value_unchecked(&self, i: usize) -> T
unsafe fn value_unchecked(&self, i: usize) -> T
Returns the element at index i
. Read more
sourcefn value_offset(&self, i: usize) -> i32
fn value_offset(&self, i: usize) -> i32
Returns the offset for the element at index i
. Read more
sourcefn value_length(&self) -> i32
fn value_length(&self) -> i32
Returns the length for an element. Read more
sourcefn value_data(&self) -> Buffer
fn value_data(&self) -> Buffer
Returns a clone of the value data buffer
fn value_offset_at(&self, i: usize) -> i32
fn value_as_string(&self, row: usize) -> String
sourcefn from_fixed_size_binary_array(
v: FixedSizeBinaryArray,
precision: usize,
scale: usize
) -> U
fn from_fixed_size_binary_array(
v: FixedSizeBinaryArray,
precision: usize,
scale: usize
) -> U
Build a decimal array from FixedSizeBinaryArray
. Read more
sourcefn from_fixed_size_list_array(
v: FixedSizeListArray,
precision: usize,
scale: usize
) -> U
fn from_fixed_size_list_array(
v: FixedSizeListArray,
precision: usize,
scale: usize
) -> U
please use from_fixed_size_binary_array
instead
Build a decimal array from FixedSizeListArray
. Read more
sourcefn default_type() -> DataType
fn default_type() -> DataType
The default precision and scale used when not specified.
sourceimpl Debug for Decimal256Array
impl Debug for Decimal256Array
sourceimpl From<ArrayData> for Decimal256Array
impl From<ArrayData> for Decimal256Array
sourceimpl From<Decimal256Array> for ArrayData
impl From<Decimal256Array> for ArrayData
sourcefn from(array: Decimal256Array) -> Self
fn from(array: Decimal256Array) -> Self
Converts to this type from the input type.
sourceimpl<Ptr: Into<Decimal256>> FromIterator<Option<Ptr>> for Decimal256Array
impl<Ptr: Into<Decimal256>> FromIterator<Option<Ptr>> for Decimal256Array
sourcefn from_iter<I: IntoIterator<Item = Option<Ptr>>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = Option<Ptr>>>(iter: I) -> Self
Creates a value from an iterator. Read more
sourceimpl<'a> IntoIterator for &'a Decimal256Array
impl<'a> IntoIterator for &'a Decimal256Array
type Item = Option<Decimal256>
type Item = Option<Decimal256>
The type of the elements being iterated over.
type IntoIter = ArrayIter<&'a Decimal256Array>
type IntoIter = ArrayIter<&'a Decimal256Array>
Which kind of iterator are we turning this into?
Auto Trait Implementations
impl RefUnwindSafe for Decimal256Array
impl Send for Decimal256Array
impl Sync for Decimal256Array
impl Unpin for Decimal256Array
impl UnwindSafe for Decimal256Array
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