pub struct ParallelPrimitiveArray<T: ArrowPrimitiveType> { /* private fields */ }Implementations§
Source§impl<T: ArrowPrimitiveType> ParallelPrimitiveArray<T>
impl<T: ArrowPrimitiveType> ParallelPrimitiveArray<T>
pub fn new(inner: PrimitiveArray<T>) -> Self
pub fn into_inner(self) -> PrimitiveArray<T>
Trait Implementations§
Source§impl<T: ArrowPrimitiveType> Array for ParallelPrimitiveArray<T>
impl<T: ArrowPrimitiveType> Array for ParallelPrimitiveArray<T>
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 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 nulls(&self) -> Option<&NullBuffer>
fn nulls(&self) -> Option<&NullBuffer>
Returns the null buffer of this array if any. Read more
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 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 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<T: Clone + ArrowPrimitiveType> Clone for ParallelPrimitiveArray<T>
impl<T: Clone + ArrowPrimitiveType> Clone for ParallelPrimitiveArray<T>
Source§fn clone(&self) -> ParallelPrimitiveArray<T>
fn clone(&self) -> ParallelPrimitiveArray<T>
Returns a duplicate 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<T: ArrowPrimitiveType> Debug for ParallelPrimitiveArray<T>
impl<T: ArrowPrimitiveType> Debug for ParallelPrimitiveArray<T>
Source§impl<T: ArrowPrimitiveType> From<PrimitiveArray<T>> for ParallelPrimitiveArray<T>
impl<T: ArrowPrimitiveType> From<PrimitiveArray<T>> for ParallelPrimitiveArray<T>
Source§fn from(array: PrimitiveArray<T>) -> Self
fn from(array: PrimitiveArray<T>) -> Self
Converts to this type from the input type.
Source§impl<T: ArrowPrimitiveType, Ptr: Into<NativeAdapter<T>> + Send> FromParallelIterator<Ptr> for ParallelPrimitiveArray<T>
impl<T: ArrowPrimitiveType, Ptr: Into<NativeAdapter<T>> + Send> FromParallelIterator<Ptr> for ParallelPrimitiveArray<T>
Source§fn from_par_iter<I>(par_iter: I) -> Selfwhere
I: IntoParallelIterator<Item = Ptr>,
fn from_par_iter<I>(par_iter: I) -> Selfwhere
I: IntoParallelIterator<Item = Ptr>,
Creates an instance of the collection from the parallel iterator
par_iter. Read moreSource§impl<T: ArrowPrimitiveType> IntoParallelIterator for ParallelPrimitiveArray<T>
impl<T: ArrowPrimitiveType> IntoParallelIterator for ParallelPrimitiveArray<T>
Source§type Item = Option<<T as ArrowPrimitiveType>::Native>
type Item = Option<<T as ArrowPrimitiveType>::Native>
The type of item that the parallel iterator will produce.
Source§type Iter = ParallelPrimitiveArrayIter<T>
type Iter = ParallelPrimitiveArrayIter<T>
The parallel iterator type that will be created.
Source§fn into_par_iter(self) -> Self::Iter
fn into_par_iter(self) -> Self::Iter
Converts
self into a parallel iterator. Read moreAuto Trait Implementations§
impl<T> Freeze for ParallelPrimitiveArray<T>
impl<T> RefUnwindSafe for ParallelPrimitiveArray<T>
impl<T> Send for ParallelPrimitiveArray<T>
impl<T> Sync for ParallelPrimitiveArray<T>
impl<T> Unpin for ParallelPrimitiveArray<T>
impl<T> UnwindSafe for ParallelPrimitiveArray<T>
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more