Struct arrow::array::Decimal256Array
source · [−]pub struct Decimal256Array { /* private fields */ }
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
sourcefn to_raw(&self) -> Result<(*const FFI_ArrowArray, *const FFI_ArrowSchema)>
fn to_raw(&self) -> Result<(*const FFI_ArrowArray, *const FFI_ArrowSchema)>
returns two pointers that represent this array in the C Data Interface (FFI)
sourceimpl BasicDecimalArray<Decimal256, Decimal256Array> for Decimal256Array
impl BasicDecimalArray<Decimal256, Decimal256Array> for Decimal256Array
const VALUE_LENGTH: i32 = 32i32
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 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
fn from_fixed_size_list_array(
v: FixedSizeListArray,
precision: usize,
scale: usize
) -> U
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 JsonEqual for Decimal256Array
impl JsonEqual for Decimal256Array
sourcefn equals_json(&self, json: &[&Value]) -> bool
fn equals_json(&self, json: &[&Value]) -> bool
Checks whether arrow array equals to json array.
sourcefn equals_json_values(&self, json: &[Value]) -> bool
fn equals_json_values(&self, json: &[Value]) -> bool
Checks whether arrow array equals to json array.
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