pub struct BFloat16Array { /* private fields */ }
Implementations§
Source§impl BFloat16Array
impl BFloat16Array
pub fn from_iter_values(iter: impl IntoIterator<Item = bf16>) -> Self
pub fn iter(&self) -> ArrayIter<&'_ BFloat16Array> ⓘ
pub fn value(&self, i: usize) -> bf16
Sourcepub unsafe fn value_unchecked(&self, i: usize) -> bf16
pub unsafe fn value_unchecked(&self, i: usize) -> bf16
§Safety
Caller must ensure that i < self.len()
pub fn into_inner(self) -> FixedSizeBinaryArray
Trait Implementations§
Source§impl Array for BFloat16Array
impl Array for BFloat16Array
Source§fn 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
Source§fn nulls(&self) -> Option<&NullBuffer>
fn nulls(&self) -> Option<&NullBuffer>
Returns the null buffer of this array if any. Read more
Source§fn 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 moreSource§fn 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.Source§fn 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.
Note that this does not always correspond to the exact memory usage of an array,
since multiple arrays can share the same buffers or slices thereof.
Source§fn logical_nulls(&self) -> Option<NullBuffer>
fn logical_nulls(&self) -> Option<NullBuffer>
Returns a potentially computed
NullBuffer
that represents the logical
null values of this array, if any. Read moreSource§fn null_count(&self) -> usize
fn null_count(&self) -> usize
Returns the total number of physical null values in this array. Read more
Source§fn is_nullable(&self) -> bool
fn is_nullable(&self) -> bool
Returns
false
if the array is guaranteed to not contain any logical nulls Read moreSource§impl<'a> ArrayAccessor for &'a BFloat16Array
impl<'a> ArrayAccessor for &'a BFloat16Array
Source§impl Clone for BFloat16Array
impl Clone for BFloat16Array
Source§fn clone(&self) -> BFloat16Array
fn clone(&self) -> BFloat16Array
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BFloat16Array
impl Debug for BFloat16Array
Source§impl FloatArray<BFloat16Type> for BFloat16Array
impl FloatArray<BFloat16Type> for BFloat16Array
Source§impl FromIterator<Option<bf16>> for BFloat16Array
impl FromIterator<Option<bf16>> for BFloat16Array
Source§impl FromIterator<bf16> for BFloat16Array
impl FromIterator<bf16> for BFloat16Array
Source§impl PartialEq for BFloat16Array
impl PartialEq for BFloat16Array
Source§impl TryFrom<FixedSizeBinaryArray> for BFloat16Array
impl TryFrom<FixedSizeBinaryArray> for BFloat16Array
Source§type Error = ArrowError
type Error = ArrowError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for BFloat16Array
impl RefUnwindSafe for BFloat16Array
impl Send for BFloat16Array
impl Sync for BFloat16Array
impl Unpin for BFloat16Array
impl UnwindSafe for BFloat16Array
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)