pub type IdxArr = PrimitiveArray<u32>;
Aliased Type§
pub struct IdxArr { /* private fields */ }
Implementations
Source§impl<T> PrimitiveArray<T>where
T: NativeType,
impl<T> PrimitiveArray<T>where
T: NativeType,
Sourcepub fn try_new(
dtype: ArrowDataType,
values: Buffer<T>,
validity: Option<Bitmap>,
) -> Result<PrimitiveArray<T>, PolarsError>
pub fn try_new( dtype: ArrowDataType, values: Buffer<T>, validity: Option<Bitmap>, ) -> Result<PrimitiveArray<T>, PolarsError>
The canonical method to create a PrimitiveArray
out of its internal components.
§Implementation
This function is O(1)
.
§Errors
This function errors iff:
- The validity is not
None
and its length is different fromvalues
’s length - The
dtype
’sPhysicalType
is not equal to [PhysicalType::Primitive(T::PRIMITIVE)
]
Sourcepub unsafe fn new_unchecked(
dtype: ArrowDataType,
values: Buffer<T>,
validity: Option<Bitmap>,
) -> PrimitiveArray<T>
pub unsafe fn new_unchecked( dtype: ArrowDataType, values: Buffer<T>, validity: Option<Bitmap>, ) -> PrimitiveArray<T>
§Safety
Doesn’t check invariants
Sourcepub fn to(self, dtype: ArrowDataType) -> PrimitiveArray<T>
pub fn to(self, dtype: ArrowDataType) -> PrimitiveArray<T>
Returns a new PrimitiveArray
with a different logical type.
This function is useful to assign a different ArrowDataType
to the array.
Used to change the arrays’ logical type (see example).
§Example
use polars_arrow::array::Int32Array;
use polars_arrow::datatypes::ArrowDataType;
let array = Int32Array::from(&[Some(1), None, Some(2)]).to(ArrowDataType::Date32);
assert_eq!(
format!("{:?}", array),
"Date32[1970-01-02, None, 1970-01-03]"
);
§Panics
Panics iff the dtype
’s PhysicalType
is not equal to [PhysicalType::Primitive(T::PRIMITIVE)
]
Sourcepub fn from_vec(values: Vec<T>) -> PrimitiveArray<T>
pub fn from_vec(values: Vec<T>) -> PrimitiveArray<T>
Creates a (non-null) PrimitiveArray
from a vector of values.
This function is O(1)
.
§Examples
use polars_arrow::array::PrimitiveArray;
let array = PrimitiveArray::from_vec(vec![1, 2, 3]);
assert_eq!(format!("{:?}", array), "Int32[1, 2, 3]");
Sourcepub fn iter(&self) -> ZipValidity<&T, Iter<'_, T>, BitmapIter<'_>>
pub fn iter(&self) -> ZipValidity<&T, Iter<'_, T>, BitmapIter<'_>>
Returns an iterator over the values and validity, Option<&T>
.
Sourcepub fn values_iter(&self) -> Iter<'_, T>
pub fn values_iter(&self) -> Iter<'_, T>
Returns an iterator of the values, &T
, ignoring the arrays’ validity.
Sourcepub fn non_null_values_iter(&self) -> NonNullValuesIter<'_, [T]>
pub fn non_null_values_iter(&self) -> NonNullValuesIter<'_, [T]>
Returns an iterator of the non-null values T
.
Sourcepub fn values(&self) -> &Buffer<T>
pub fn values(&self) -> &Buffer<T>
The values Buffer
.
Values on null slots are undetermined (they can be anything).
Sourcepub fn dtype(&self) -> &ArrowDataType
pub fn dtype(&self) -> &ArrowDataType
Returns the arrays’ ArrowDataType
.
Sourcepub fn value(&self, i: usize) -> T
pub fn value(&self, i: usize) -> T
Returns the value at slot i
.
Equivalent to self.values()[i]
. The value of a null slot is undetermined (it can be anything).
§Panic
This function panics iff i >= self.len
.
Sourcepub unsafe fn value_unchecked(&self, i: usize) -> T
pub unsafe fn value_unchecked(&self, i: usize) -> T
Returns the value at index i
.
The value on null slots is undetermined (it can be anything).
§Safety
Caller must be sure that i < self.len()
Sourcepub unsafe fn slice_unchecked(&mut self, offset: usize, length: usize)
pub unsafe fn slice_unchecked(&mut self, offset: usize, length: usize)
Slices this PrimitiveArray
by an offset and length.
§Implementation
This operation is O(1)
.
§Safety
The caller must ensure that offset + length <= self.len()
.
Sourcepub fn sliced(self, offset: usize, length: usize) -> PrimitiveArray<T>
pub fn sliced(self, offset: usize, length: usize) -> PrimitiveArray<T>
Sourcepub unsafe fn sliced_unchecked(
self,
offset: usize,
length: usize,
) -> PrimitiveArray<T>
pub unsafe fn sliced_unchecked( self, offset: usize, length: usize, ) -> PrimitiveArray<T>
Sourcepub fn with_validity(self, validity: Option<Bitmap>) -> PrimitiveArray<T>
pub fn with_validity(self, validity: Option<Bitmap>) -> PrimitiveArray<T>
Sourcepub fn set_validity(&mut self, validity: Option<Bitmap>)
pub fn set_validity(&mut self, validity: Option<Bitmap>)
Sourcepub fn take_validity(&mut self) -> Option<Bitmap>
pub fn take_validity(&mut self) -> Option<Bitmap>
Takes the validity of this array, leaving it without a validity mask.
Sourcepub fn boxed(self) -> Box<dyn Array>
pub fn boxed(self) -> Box<dyn Array>
Boxes this array into a Box<dyn Array>
.
Sourcepub fn arced(self) -> Arc<dyn Array>
pub fn arced(self) -> Arc<dyn Array>
Arcs this array into a std::sync::Arc<dyn Array>
.
Sourcepub fn with_values(self, values: Buffer<T>) -> PrimitiveArray<T>
pub fn with_values(self, values: Buffer<T>) -> PrimitiveArray<T>
Returns this PrimitiveArray
with new values.
§Panics
This function panics iff values.len() != self.len()
.
Sourcepub fn set_values(&mut self, values: Buffer<T>)
pub fn set_values(&mut self, values: Buffer<T>)
Update the values of this PrimitiveArray
.
§Panics
This function panics iff values.len() != self.len()
.
Sourcepub fn apply_validity<F>(&mut self, f: F)
pub fn apply_validity<F>(&mut self, f: F)
Sourcepub fn get_mut_values(&mut self) -> Option<&mut [T]>
pub fn get_mut_values(&mut self) -> Option<&mut [T]>
Returns an option of a mutable reference to the values of this PrimitiveArray
.
Sourcepub fn into_inner(self) -> (ArrowDataType, Buffer<T>, Option<Bitmap>)
pub fn into_inner(self) -> (ArrowDataType, Buffer<T>, Option<Bitmap>)
Returns its internal representation
Sourcepub fn from_inner(
dtype: ArrowDataType,
values: Buffer<T>,
validity: Option<Bitmap>,
) -> Result<PrimitiveArray<T>, PolarsError>
pub fn from_inner( dtype: ArrowDataType, values: Buffer<T>, validity: Option<Bitmap>, ) -> Result<PrimitiveArray<T>, PolarsError>
Creates a PrimitiveArray
from its internal representation.
This is the inverted from PrimitiveArray::into_inner
Sourcepub unsafe fn from_inner_unchecked(
dtype: ArrowDataType,
values: Buffer<T>,
validity: Option<Bitmap>,
) -> PrimitiveArray<T>
pub unsafe fn from_inner_unchecked( dtype: ArrowDataType, values: Buffer<T>, validity: Option<Bitmap>, ) -> PrimitiveArray<T>
Creates a PrimitiveArray
from its internal representation.
This is the inverted from PrimitiveArray::into_inner
§Safety
Callers must ensure all invariants of this struct are upheld.
Sourcepub fn into_mut(self) -> Either<PrimitiveArray<T>, MutablePrimitiveArray<T>> ⓘ
pub fn into_mut(self) -> Either<PrimitiveArray<T>, MutablePrimitiveArray<T>> ⓘ
Try to convert this PrimitiveArray
to a MutablePrimitiveArray
via copy-on-write semantics.
A PrimitiveArray
is backed by a Buffer
and Bitmap
which are essentially Arc<Vec<_>>
.
This function returns a MutablePrimitiveArray
(via std::sync::Arc::get_mut
) iff both values
and validity have not been cloned / are unique references to their underlying vectors.
This function is primarily used to reuse memory regions.
Sourcepub fn new_empty(dtype: ArrowDataType) -> PrimitiveArray<T>
pub fn new_empty(dtype: ArrowDataType) -> PrimitiveArray<T>
Returns a new empty (zero-length) PrimitiveArray
.
Sourcepub fn new_null(dtype: ArrowDataType, length: usize) -> PrimitiveArray<T>
pub fn new_null(dtype: ArrowDataType, length: usize) -> PrimitiveArray<T>
Returns a new PrimitiveArray
where all slots are null / None
.
Sourcepub fn from_values<I>(iter: I) -> PrimitiveArray<T>where
I: IntoIterator<Item = T>,
pub fn from_values<I>(iter: I) -> PrimitiveArray<T>where
I: IntoIterator<Item = T>,
Creates a (non-null) PrimitiveArray
from an iterator of values.
§Implementation
This does not assume that the iterator has a known length.
Sourcepub fn from_slice<P>(slice: P) -> PrimitiveArray<T>
pub fn from_slice<P>(slice: P) -> PrimitiveArray<T>
Creates a (non-null) PrimitiveArray
from a slice of values.
§Implementation
This is essentially a memcopy and is thus O(N)
Sourcepub fn from_trusted_len_values_iter<I>(iter: I) -> PrimitiveArray<T>where
I: TrustedLen<Item = T>,
pub fn from_trusted_len_values_iter<I>(iter: I) -> PrimitiveArray<T>where
I: TrustedLen<Item = T>,
Creates a (non-null) PrimitiveArray
from a TrustedLen
of values.
§Implementation
This does not assume that the iterator has a known length.
Sourcepub unsafe fn from_trusted_len_values_iter_unchecked<I>(
iter: I,
) -> PrimitiveArray<T>where
I: Iterator<Item = T>,
pub unsafe fn from_trusted_len_values_iter_unchecked<I>(
iter: I,
) -> PrimitiveArray<T>where
I: Iterator<Item = T>,
Creates a new PrimitiveArray
from an iterator over values
§Safety
The iterator must be TrustedLen
.
I.e. that size_hint().1
correctly reports its length.
Sourcepub fn from_trusted_len_iter<I>(iter: I) -> PrimitiveArray<T>where
I: TrustedLen<Item = Option<T>>,
pub fn from_trusted_len_iter<I>(iter: I) -> PrimitiveArray<T>where
I: TrustedLen<Item = Option<T>>,
Creates a PrimitiveArray
from a TrustedLen
of optional values.
Sourcepub unsafe fn from_trusted_len_iter_unchecked<I>(iter: I) -> PrimitiveArray<T>
pub unsafe fn from_trusted_len_iter_unchecked<I>(iter: I) -> PrimitiveArray<T>
Creates a PrimitiveArray
from an iterator of optional values.
§Safety
The iterator must be TrustedLen
.
I.e. that size_hint().1
correctly reports its length.
Sourcepub fn new(
dtype: ArrowDataType,
values: Buffer<T>,
validity: Option<Bitmap>,
) -> PrimitiveArray<T>
pub fn new( dtype: ArrowDataType, values: Buffer<T>, validity: Option<Bitmap>, ) -> PrimitiveArray<T>
Alias for Self::try_new(..).unwrap()
.
§Panics
This function errors iff:
- The validity is not
None
and its length is different fromvalues
’s length - The
dtype
’sPhysicalType
is not equal toPhysicalType::Primitive
.
Sourcepub fn transmute<U>(self) -> PrimitiveArray<U>where
U: NativeType,
pub fn transmute<U>(self) -> PrimitiveArray<U>where
U: NativeType,
Transmute this PrimitiveArray into another PrimitiveArray.
T and U must have the same size and alignment.
Sourcepub fn fill_with(self, value: T) -> PrimitiveArray<T>
pub fn fill_with(self, value: T) -> PrimitiveArray<T>
Fills this entire array with the given value, leaving the validity mask intact.
Reuses the memory of the PrimitiveArray if possible.
Trait Implementations
Source§impl<T> ArithmeticKernel for PrimitiveArray<T>where
T: HasPrimitiveArithmeticKernel,
impl<T> ArithmeticKernel for PrimitiveArray<T>where
T: HasPrimitiveArithmeticKernel,
type Scalar = T
type TrueDivT = <T as PrimitiveArithmeticKernelImpl>::TrueDivT
fn wrapping_abs(self) -> PrimitiveArray<T>
fn wrapping_neg(self) -> PrimitiveArray<T>
fn wrapping_add(self, rhs: PrimitiveArray<T>) -> PrimitiveArray<T>
fn wrapping_sub(self, rhs: PrimitiveArray<T>) -> PrimitiveArray<T>
fn wrapping_mul(self, rhs: PrimitiveArray<T>) -> PrimitiveArray<T>
fn wrapping_floor_div(self, rhs: PrimitiveArray<T>) -> PrimitiveArray<T>
fn wrapping_trunc_div(self, rhs: PrimitiveArray<T>) -> PrimitiveArray<T>
fn wrapping_mod(self, rhs: PrimitiveArray<T>) -> PrimitiveArray<T>
fn wrapping_add_scalar( self, rhs: <PrimitiveArray<T> as ArithmeticKernel>::Scalar, ) -> PrimitiveArray<T>
fn wrapping_sub_scalar( self, rhs: <PrimitiveArray<T> as ArithmeticKernel>::Scalar, ) -> PrimitiveArray<T>
fn wrapping_sub_scalar_lhs( lhs: <PrimitiveArray<T> as ArithmeticKernel>::Scalar, rhs: PrimitiveArray<T>, ) -> PrimitiveArray<T>
fn wrapping_mul_scalar( self, rhs: <PrimitiveArray<T> as ArithmeticKernel>::Scalar, ) -> PrimitiveArray<T>
fn wrapping_floor_div_scalar( self, rhs: <PrimitiveArray<T> as ArithmeticKernel>::Scalar, ) -> PrimitiveArray<T>
fn wrapping_floor_div_scalar_lhs( lhs: <PrimitiveArray<T> as ArithmeticKernel>::Scalar, rhs: PrimitiveArray<T>, ) -> PrimitiveArray<T>
fn wrapping_trunc_div_scalar( self, rhs: <PrimitiveArray<T> as ArithmeticKernel>::Scalar, ) -> PrimitiveArray<T>
fn wrapping_trunc_div_scalar_lhs( lhs: <PrimitiveArray<T> as ArithmeticKernel>::Scalar, rhs: PrimitiveArray<T>, ) -> PrimitiveArray<T>
fn wrapping_mod_scalar( self, rhs: <PrimitiveArray<T> as ArithmeticKernel>::Scalar, ) -> PrimitiveArray<T>
fn wrapping_mod_scalar_lhs( lhs: <PrimitiveArray<T> as ArithmeticKernel>::Scalar, rhs: PrimitiveArray<T>, ) -> PrimitiveArray<T>
fn checked_mul_scalar( self, rhs: <PrimitiveArray<T> as ArithmeticKernel>::Scalar, ) -> PrimitiveArray<T>
fn true_div( self, rhs: PrimitiveArray<T>, ) -> PrimitiveArray<<PrimitiveArray<T> as ArithmeticKernel>::TrueDivT>
fn true_div_scalar( self, rhs: <PrimitiveArray<T> as ArithmeticKernel>::Scalar, ) -> PrimitiveArray<<PrimitiveArray<T> as ArithmeticKernel>::TrueDivT>
fn true_div_scalar_lhs( lhs: <PrimitiveArray<T> as ArithmeticKernel>::Scalar, rhs: PrimitiveArray<T>, ) -> PrimitiveArray<<PrimitiveArray<T> as ArithmeticKernel>::TrueDivT>
fn legacy_div(self, rhs: Self) -> Self
fn legacy_div_scalar(self, rhs: Self::Scalar) -> Self
fn legacy_div_scalar_lhs(lhs: Self::Scalar, rhs: Self) -> Self
Source§impl<T> Array for PrimitiveArray<T>where
T: NativeType,
impl<T> Array for PrimitiveArray<T>where
T: NativeType,
Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Any
, which enables downcasting to concrete types.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Any
, which enables mutable downcasting to concrete types.Source§fn len(&self) -> usize
fn len(&self) -> usize
Array
. Every array has a length corresponding to the number of
elements (slots).Source§fn dtype(&self) -> &ArrowDataType
fn dtype(&self) -> &ArrowDataType
ArrowDataType
of the Array
. In combination with Array::as_any
, this can be
used to downcast trait objects (dyn Array
) to concrete arrays.Source§unsafe fn split_at_boxed_unchecked(
&self,
offset: usize,
) -> (Box<dyn Array>, Box<dyn Array>)
unsafe fn split_at_boxed_unchecked( &self, offset: usize, ) -> (Box<dyn Array>, Box<dyn Array>)
Source§unsafe fn slice_unchecked(&mut self, offset: usize, length: usize)
unsafe fn slice_unchecked(&mut self, offset: usize, length: usize)
fn has_nulls(&self) -> bool
Source§unsafe fn is_null_unchecked(&self, i: usize) -> bool
unsafe fn is_null_unchecked(&self, i: usize) -> bool
i
is null. Read moreSource§impl<T> ArrayFromIter<Option<T>> for PrimitiveArray<T>where
T: NativeType,
impl<T> ArrayFromIter<Option<T>> for PrimitiveArray<T>where
T: NativeType,
fn arr_from_iter<I>(iter: I) -> PrimitiveArray<T>where
I: IntoIterator<Item = Option<T>>,
fn arr_from_iter_trusted<I>(iter: I) -> PrimitiveArray<T>
fn try_arr_from_iter<E, I>(iter: I) -> Result<PrimitiveArray<T>, E>
fn try_arr_from_iter_trusted<E, I>(iter: I) -> Result<PrimitiveArray<T>, E>
Source§impl<T> ArrayFromIter<T> for PrimitiveArray<T>where
T: NativeType,
impl<T> ArrayFromIter<T> for PrimitiveArray<T>where
T: NativeType,
fn arr_from_iter<I>(iter: I) -> PrimitiveArray<T>where
I: IntoIterator<Item = T>,
fn arr_from_iter_trusted<I>(iter: I) -> PrimitiveArray<T>
fn try_arr_from_iter<E, I>(iter: I) -> Result<PrimitiveArray<T>, E>where
I: IntoIterator<Item = Result<T, E>>,
fn try_arr_from_iter_trusted<E, I>(iter: I) -> Result<PrimitiveArray<T>, E>
Source§impl BitwiseKernel for PrimitiveArray<u32>
impl BitwiseKernel for PrimitiveArray<u32>
type Scalar = u32
fn count_ones(&self) -> PrimitiveArray<u32>
fn count_zeros(&self) -> PrimitiveArray<u32>
fn leading_ones(&self) -> PrimitiveArray<u32>
fn leading_zeros(&self) -> PrimitiveArray<u32>
fn trailing_ones(&self) -> PrimitiveArray<u32>
fn trailing_zeros(&self) -> PrimitiveArray<u32>
fn reduce_and(&self) -> Option<<PrimitiveArray<u32> as BitwiseKernel>::Scalar>
fn reduce_or(&self) -> Option<<PrimitiveArray<u32> as BitwiseKernel>::Scalar>
fn reduce_xor(&self) -> Option<<PrimitiveArray<u32> as BitwiseKernel>::Scalar>
fn bit_and( lhs: <PrimitiveArray<u32> as BitwiseKernel>::Scalar, rhs: <PrimitiveArray<u32> as BitwiseKernel>::Scalar, ) -> <PrimitiveArray<u32> as BitwiseKernel>::Scalar
fn bit_or( lhs: <PrimitiveArray<u32> as BitwiseKernel>::Scalar, rhs: <PrimitiveArray<u32> as BitwiseKernel>::Scalar, ) -> <PrimitiveArray<u32> as BitwiseKernel>::Scalar
fn bit_xor( lhs: <PrimitiveArray<u32> as BitwiseKernel>::Scalar, rhs: <PrimitiveArray<u32> as BitwiseKernel>::Scalar, ) -> <PrimitiveArray<u32> as BitwiseKernel>::Scalar
Source§impl<T> Bounded for PrimitiveArray<T>where
T: NativeType,
impl<T> Bounded for PrimitiveArray<T>where
T: NativeType,
Source§impl<T> Clone for PrimitiveArray<T>where
T: Clone + NativeType,
impl<T> Clone for PrimitiveArray<T>where
T: Clone + NativeType,
Source§fn clone(&self) -> PrimitiveArray<T>
fn clone(&self) -> PrimitiveArray<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<T> Debug for PrimitiveArray<T>where
T: NativeType,
impl<T> Debug for PrimitiveArray<T>where
T: NativeType,
Source§impl<T> Default for PrimitiveArray<T>where
T: NativeType,
impl<T> Default for PrimitiveArray<T>where
T: NativeType,
Source§fn default() -> PrimitiveArray<T>
fn default() -> PrimitiveArray<T>
Source§impl<T> From<MutablePrimitiveArray<T>> for PrimitiveArray<T>where
T: NativeType,
impl<T> From<MutablePrimitiveArray<T>> for PrimitiveArray<T>where
T: NativeType,
Source§fn from(other: MutablePrimitiveArray<T>) -> PrimitiveArray<T>
fn from(other: MutablePrimitiveArray<T>) -> PrimitiveArray<T>
Source§impl<T, P> From<P> for PrimitiveArray<T>
impl<T, P> From<P> for PrimitiveArray<T>
Source§fn from(slice: P) -> PrimitiveArray<T>
fn from(slice: P) -> PrimitiveArray<T>
Source§impl<T> FromData<Buffer<T>> for PrimitiveArray<T>where
T: NativeType,
impl<T> FromData<Buffer<T>> for PrimitiveArray<T>where
T: NativeType,
fn from_data_default( values: Buffer<T>, validity: Option<Bitmap>, ) -> PrimitiveArray<T>
Source§impl<T, Ptr> FromIterator<Ptr> for PrimitiveArray<T>
impl<T, Ptr> FromIterator<Ptr> for PrimitiveArray<T>
Source§fn from_iter<I>(iter: I) -> PrimitiveArray<T>where
I: IntoIterator<Item = Ptr>,
fn from_iter<I>(iter: I) -> PrimitiveArray<T>where
I: IntoIterator<Item = Ptr>,
Source§impl<T> FromIteratorReversed<Option<T>> for PrimitiveArray<T>where
T: NativeType,
impl<T> FromIteratorReversed<Option<T>> for PrimitiveArray<T>where
T: NativeType,
fn from_trusted_len_iter_rev<I>(iter: I) -> PrimitiveArray<T>where
I: TrustedLen<Item = Option<T>>,
Source§impl<T> FromIteratorReversed<T> for PrimitiveArray<T>where
T: NativeType,
impl<T> FromIteratorReversed<T> for PrimitiveArray<T>where
T: NativeType,
fn from_trusted_len_iter_rev<I>(iter: I) -> PrimitiveArray<T>where
I: TrustedLen<Item = T>,
Source§impl<T> FromTrustedLenIterator<Option<T>> for PrimitiveArray<T>where
T: NativeType,
impl<T> FromTrustedLenIterator<Option<T>> for PrimitiveArray<T>where
T: NativeType,
fn from_iter_trusted_length<I>(iter: I) -> PrimitiveArray<T>
Source§impl<T> FromTrustedLenIterator<T> for PrimitiveArray<T>where
T: NativeType,
impl<T> FromTrustedLenIterator<T> for PrimitiveArray<T>where
T: NativeType,
fn from_iter_trusted_length<I>(iter: I) -> PrimitiveArray<T>
Source§impl<T> IfThenElseKernel for PrimitiveArray<T>where
T: NotSimdPrimitive,
impl<T> IfThenElseKernel for PrimitiveArray<T>where
T: NotSimdPrimitive,
type Scalar<'a> = T
fn if_then_else( mask: &Bitmap, if_true: &PrimitiveArray<T>, if_false: &PrimitiveArray<T>, ) -> PrimitiveArray<T>
fn if_then_else_broadcast_true( mask: &Bitmap, if_true: <PrimitiveArray<T> as IfThenElseKernel>::Scalar<'_>, if_false: &PrimitiveArray<T>, ) -> PrimitiveArray<T>
fn if_then_else_broadcast_false( mask: &Bitmap, if_true: &PrimitiveArray<T>, if_false: <PrimitiveArray<T> as IfThenElseKernel>::Scalar<'_>, ) -> PrimitiveArray<T>
fn if_then_else_broadcast_both( _dtype: ArrowDataType, mask: &Bitmap, if_true: <PrimitiveArray<T> as IfThenElseKernel>::Scalar<'_>, if_false: <PrimitiveArray<T> as IfThenElseKernel>::Scalar<'_>, ) -> PrimitiveArray<T>
Source§impl<T> Indexable for PrimitiveArray<T>where
T: NativeType,
impl<T> Indexable for PrimitiveArray<T>where
T: NativeType,
Source§impl<T> IntoIterator for PrimitiveArray<T>where
T: NativeType,
impl<T> IntoIterator for PrimitiveArray<T>where
T: NativeType,
Source§impl<T> MinMaxKernel for PrimitiveArray<T>where
T: NativeType + MinMax + NotSimdPrimitive,
impl<T> MinMaxKernel for PrimitiveArray<T>where
T: NativeType + MinMax + NotSimdPrimitive,
type Scalar<'a> = T
fn min_ignore_nan_kernel( &self, ) -> Option<<PrimitiveArray<T> as MinMaxKernel>::Scalar<'_>>
fn max_ignore_nan_kernel( &self, ) -> Option<<PrimitiveArray<T> as MinMaxKernel>::Scalar<'_>>
fn min_max_ignore_nan_kernel( &self, ) -> Option<(<PrimitiveArray<T> as MinMaxKernel>::Scalar<'_>, <PrimitiveArray<T> as MinMaxKernel>::Scalar<'_>)>
fn min_propagate_nan_kernel( &self, ) -> Option<<PrimitiveArray<T> as MinMaxKernel>::Scalar<'_>>
fn max_propagate_nan_kernel( &self, ) -> Option<<PrimitiveArray<T> as MinMaxKernel>::Scalar<'_>>
fn min_max_propagate_nan_kernel( &self, ) -> Option<(<PrimitiveArray<T> as MinMaxKernel>::Scalar<'_>, <PrimitiveArray<T> as MinMaxKernel>::Scalar<'_>)>
Source§impl<T> NullCount for PrimitiveArray<T>where
T: NativeType,
impl<T> NullCount for PrimitiveArray<T>where
T: NativeType,
fn null_count(&self) -> usize
Source§impl<T> ParameterFreeDtypeStaticArray for PrimitiveArray<T>where
T: NativeType,
impl<T> ParameterFreeDtypeStaticArray for PrimitiveArray<T>where
T: NativeType,
fn get_dtype() -> ArrowDataType
Source§impl<T> PartialEq<&(dyn Array + 'static)> for PrimitiveArray<T>where
T: NativeType,
impl<T> PartialEq<&(dyn Array + 'static)> for PrimitiveArray<T>where
T: NativeType,
Source§impl<T> PartialEq for PrimitiveArray<T>where
T: NativeType,
impl<T> PartialEq for PrimitiveArray<T>where
T: NativeType,
Source§impl<T> SliceAble for PrimitiveArray<T>where
T: NativeType,
impl<T> SliceAble for PrimitiveArray<T>where
T: NativeType,
Source§unsafe fn slice_unchecked(&self, range: Range<usize>) -> PrimitiveArray<T>
unsafe fn slice_unchecked(&self, range: Range<usize>) -> PrimitiveArray<T>
fn slice(&self, range: Range<usize>) -> PrimitiveArray<T>
Source§impl<T> Splitable for PrimitiveArray<T>where
T: NativeType,
impl<T> Splitable for PrimitiveArray<T>where
T: NativeType,
fn check_bound(&self, offset: usize) -> bool
Source§unsafe fn _split_at_unchecked(
&self,
offset: usize,
) -> (PrimitiveArray<T>, PrimitiveArray<T>)
unsafe fn _split_at_unchecked( &self, offset: usize, ) -> (PrimitiveArray<T>, PrimitiveArray<T>)
split_at_unchecked
. For any usage, prefer the using
split_at
or split_at_unchecked
. Read more