Struct arrow::array::PrimitiveArray
source · [−]pub struct PrimitiveArray<T: ArrowPrimitiveType> { /* private fields */ }
Expand description
Array whose elements are of primitive types.
Example: From an iterator of values
use arrow::array::{Array, PrimitiveArray};
use arrow::datatypes::Int32Type;
let arr: PrimitiveArray<Int32Type> = PrimitiveArray::from_iter_values((0..10).map(|x| x + 1));
assert_eq!(10, arr.len());
assert_eq!(0, arr.null_count());
for i in 0..10i32 {
assert_eq!(i + 1, arr.value(i as usize));
}
Implementations
sourceimpl<T: ArrowPrimitiveType> PrimitiveArray<T>
impl<T: ArrowPrimitiveType> PrimitiveArray<T>
pub fn builder(capacity: usize) -> PrimitiveBuilder<T>
sourcepub unsafe fn value_unchecked(&self, i: usize) -> T::Native
pub unsafe fn value_unchecked(&self, i: usize) -> T::Native
Returns the primitive value at index i
.
Safety
caller must ensure that the passed in offset is less than the array len()
sourcepub fn value(&self, i: usize) -> T::Native
pub fn value(&self, i: usize) -> T::Native
Returns the primitive value at index i
.
Panics of offset i
is out of bounds
sourcepub fn from_iter_values<I: IntoIterator<Item = T::Native>>(iter: I) -> Self
pub fn from_iter_values<I: IntoIterator<Item = T::Native>>(iter: I) -> Self
Creates a PrimitiveArray based on an iterator of values without nulls
sourcepub fn from_value(value: T::Native, count: usize) -> Self
pub fn from_value(value: T::Native, count: usize) -> Self
Creates a PrimitiveArray based on a constant value with count
elements
sourcepub fn take_iter<'a>(
&'a self,
indexes: impl Iterator<Item = Option<usize>> + 'a
) -> impl Iterator<Item = Option<T::Native>> + 'a
pub fn take_iter<'a>(
&'a self,
indexes: impl Iterator<Item = Option<usize>> + 'a
) -> impl Iterator<Item = Option<T::Native>> + 'a
Returns an iterator that returns the values of array.value(i)
for an iterator with each element i
sourcepub unsafe fn take_iter_unchecked<'a>(
&'a self,
indexes: impl Iterator<Item = Option<usize>> + 'a
) -> impl Iterator<Item = Option<T::Native>> + 'a
pub unsafe fn take_iter_unchecked<'a>(
&'a self,
indexes: impl Iterator<Item = Option<usize>> + 'a
) -> impl Iterator<Item = Option<T::Native>> + 'a
Returns an iterator that returns the values of array.value(i)
for an iterator with each element i
Safety
caller must ensure that the offsets in the iterator are less than the array len()
sourceimpl<T: ArrowTemporalType + ArrowNumericType> PrimitiveArray<T> where
i64: From<T::Native>,
impl<T: ArrowTemporalType + ArrowNumericType> PrimitiveArray<T> where
i64: From<T::Native>,
sourcepub fn value_as_datetime(&self, i: usize) -> Option<NaiveDateTime>
pub fn value_as_datetime(&self, i: usize) -> Option<NaiveDateTime>
Returns value as a chrono NaiveDateTime
, handling time resolution
If a data type cannot be converted to NaiveDateTime
, a None
is returned.
A valid value is expected, thus the user should first check for validity.
sourcepub fn value_as_datetime_with_tz(
&self,
i: usize,
tz: FixedOffset
) -> Option<NaiveDateTime>
pub fn value_as_datetime_with_tz(
&self,
i: usize,
tz: FixedOffset
) -> Option<NaiveDateTime>
Returns value as a chrono NaiveDateTime
, handling time resolution with the provided tz
functionally it is same as value_as_datetime
, however it adds
the passed tz to the to-be-returned NaiveDateTime
sourcepub fn value_as_date(&self, i: usize) -> Option<NaiveDate>
pub fn value_as_date(&self, i: usize) -> Option<NaiveDate>
Returns value as a chrono NaiveDate
by using Self::datetime()
If a data type cannot be converted to NaiveDate
, a None
is returned
sourcepub fn value_as_time(&self, i: usize) -> Option<NaiveTime>
pub fn value_as_time(&self, i: usize) -> Option<NaiveTime>
Returns a value as a chrono NaiveTime
Date32
and Date64
return UTC midnight as they do not have time resolution
sourcepub fn value_as_duration(&self, i: usize) -> Option<Duration>
pub fn value_as_duration(&self, i: usize) -> Option<Duration>
Returns a value as a chrono Duration
If a data type cannot be converted to Duration
, a None
is returned
sourceimpl<'a, T: ArrowPrimitiveType> PrimitiveArray<T>
impl<'a, T: ArrowPrimitiveType> PrimitiveArray<T>
sourcepub fn iter(&'a self) -> PrimitiveIter<'a, T>ⓘNotable traits for PrimitiveIter<'a, T>impl<'a, T: ArrowPrimitiveType> Iterator for PrimitiveIter<'a, T> type Item = Option<T::Native>;
pub fn iter(&'a self) -> PrimitiveIter<'a, T>ⓘNotable traits for PrimitiveIter<'a, T>impl<'a, T: ArrowPrimitiveType> Iterator for PrimitiveIter<'a, T> type Item = Option<T::Native>;
constructs a new iterator
sourceimpl<T: ArrowPrimitiveType> PrimitiveArray<T>
impl<T: ArrowPrimitiveType> PrimitiveArray<T>
sourcepub unsafe fn from_trusted_len_iter<I, P>(iter: I) -> Self where
P: Borrow<Option<<T as ArrowPrimitiveType>::Native>>,
I: IntoIterator<Item = P>,
pub unsafe fn from_trusted_len_iter<I, P>(iter: I) -> Self where
P: Borrow<Option<<T as ArrowPrimitiveType>::Native>>,
I: IntoIterator<Item = P>,
Creates a PrimitiveArray
from an iterator of trusted length.
Safety
The iterator must be TrustedLen
.
I.e. that size_hint().1
correctly reports its length.
sourceimpl<T: ArrowTimestampType> PrimitiveArray<T>
impl<T: ArrowTimestampType> PrimitiveArray<T>
sourceimpl<T: ArrowTimestampType> PrimitiveArray<T>
impl<T: ArrowTimestampType> PrimitiveArray<T>
Trait Implementations
sourceimpl<T: ArrowPrimitiveType> Array for PrimitiveArray<T>
impl<T: ArrowPrimitiveType> Array for PrimitiveArray<T>
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<T: ArrowPrimitiveType> Debug for PrimitiveArray<T>
impl<T: ArrowPrimitiveType> Debug for PrimitiveArray<T>
sourceimpl<T: ArrowPrimitiveType> From<ArrayData> for PrimitiveArray<T>
impl<T: ArrowPrimitiveType> From<ArrayData> for PrimitiveArray<T>
Constructs a PrimitiveArray
from an array data reference.
sourceimpl From<Vec<<Date32Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Date32Type>
impl From<Vec<<Date32Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Date32Type>
sourcefn from(data: Vec<<Date32Type as ArrowPrimitiveType>::Native>) -> Self
fn from(data: Vec<<Date32Type as ArrowPrimitiveType>::Native>) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<Date64Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Date64Type>
impl From<Vec<<Date64Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Date64Type>
sourcefn from(data: Vec<<Date64Type as ArrowPrimitiveType>::Native>) -> Self
fn from(data: Vec<<Date64Type as ArrowPrimitiveType>::Native>) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<DurationMicrosecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<DurationMicrosecondType>
impl From<Vec<<DurationMicrosecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<DurationMicrosecondType>
sourcefn from(
data: Vec<<DurationMicrosecondType as ArrowPrimitiveType>::Native>
) -> Self
fn from(
data: Vec<<DurationMicrosecondType as ArrowPrimitiveType>::Native>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<DurationMillisecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<DurationMillisecondType>
impl From<Vec<<DurationMillisecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<DurationMillisecondType>
sourcefn from(
data: Vec<<DurationMillisecondType as ArrowPrimitiveType>::Native>
) -> Self
fn from(
data: Vec<<DurationMillisecondType as ArrowPrimitiveType>::Native>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<DurationNanosecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<DurationNanosecondType>
impl From<Vec<<DurationNanosecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<DurationNanosecondType>
sourcefn from(
data: Vec<<DurationNanosecondType as ArrowPrimitiveType>::Native>
) -> Self
fn from(
data: Vec<<DurationNanosecondType as ArrowPrimitiveType>::Native>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<DurationSecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<DurationSecondType>
impl From<Vec<<DurationSecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<DurationSecondType>
sourcefn from(data: Vec<<DurationSecondType as ArrowPrimitiveType>::Native>) -> Self
fn from(data: Vec<<DurationSecondType as ArrowPrimitiveType>::Native>) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<Float32Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Float32Type>
impl From<Vec<<Float32Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Float32Type>
sourcefn from(data: Vec<<Float32Type as ArrowPrimitiveType>::Native>) -> Self
fn from(data: Vec<<Float32Type as ArrowPrimitiveType>::Native>) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<Float64Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Float64Type>
impl From<Vec<<Float64Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Float64Type>
sourcefn from(data: Vec<<Float64Type as ArrowPrimitiveType>::Native>) -> Self
fn from(data: Vec<<Float64Type as ArrowPrimitiveType>::Native>) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<Int16Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Int16Type>
impl From<Vec<<Int16Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Int16Type>
sourceimpl From<Vec<<Int32Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Int32Type>
impl From<Vec<<Int32Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Int32Type>
sourceimpl From<Vec<<Int64Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Int64Type>
impl From<Vec<<Int64Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Int64Type>
sourceimpl From<Vec<<Int8Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Int8Type>
impl From<Vec<<Int8Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Int8Type>
sourceimpl From<Vec<<IntervalDayTimeType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<IntervalDayTimeType>
impl From<Vec<<IntervalDayTimeType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<IntervalDayTimeType>
sourcefn from(data: Vec<<IntervalDayTimeType as ArrowPrimitiveType>::Native>) -> Self
fn from(data: Vec<<IntervalDayTimeType as ArrowPrimitiveType>::Native>) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<IntervalMonthDayNanoType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<IntervalMonthDayNanoType>
impl From<Vec<<IntervalMonthDayNanoType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<IntervalMonthDayNanoType>
sourcefn from(
data: Vec<<IntervalMonthDayNanoType as ArrowPrimitiveType>::Native>
) -> Self
fn from(
data: Vec<<IntervalMonthDayNanoType as ArrowPrimitiveType>::Native>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<IntervalYearMonthType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<IntervalYearMonthType>
impl From<Vec<<IntervalYearMonthType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<IntervalYearMonthType>
sourcefn from(
data: Vec<<IntervalYearMonthType as ArrowPrimitiveType>::Native>
) -> Self
fn from(
data: Vec<<IntervalYearMonthType as ArrowPrimitiveType>::Native>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<Time32MillisecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Time32MillisecondType>
impl From<Vec<<Time32MillisecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Time32MillisecondType>
sourcefn from(
data: Vec<<Time32MillisecondType as ArrowPrimitiveType>::Native>
) -> Self
fn from(
data: Vec<<Time32MillisecondType as ArrowPrimitiveType>::Native>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<Time32SecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Time32SecondType>
impl From<Vec<<Time32SecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Time32SecondType>
sourcefn from(data: Vec<<Time32SecondType as ArrowPrimitiveType>::Native>) -> Self
fn from(data: Vec<<Time32SecondType as ArrowPrimitiveType>::Native>) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<Time64MicrosecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Time64MicrosecondType>
impl From<Vec<<Time64MicrosecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Time64MicrosecondType>
sourcefn from(
data: Vec<<Time64MicrosecondType as ArrowPrimitiveType>::Native>
) -> Self
fn from(
data: Vec<<Time64MicrosecondType as ArrowPrimitiveType>::Native>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<Time64NanosecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Time64NanosecondType>
impl From<Vec<<Time64NanosecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<Time64NanosecondType>
sourcefn from(data: Vec<<Time64NanosecondType as ArrowPrimitiveType>::Native>) -> Self
fn from(data: Vec<<Time64NanosecondType as ArrowPrimitiveType>::Native>) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<TimestampMicrosecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<TimestampMicrosecondType>
impl From<Vec<<TimestampMicrosecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<TimestampMicrosecondType>
sourcefn from(
data: Vec<<TimestampMicrosecondType as ArrowPrimitiveType>::Native>
) -> Self
fn from(
data: Vec<<TimestampMicrosecondType as ArrowPrimitiveType>::Native>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<TimestampMillisecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<TimestampMillisecondType>
impl From<Vec<<TimestampMillisecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<TimestampMillisecondType>
sourcefn from(
data: Vec<<TimestampMillisecondType as ArrowPrimitiveType>::Native>
) -> Self
fn from(
data: Vec<<TimestampMillisecondType as ArrowPrimitiveType>::Native>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<TimestampNanosecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<TimestampNanosecondType>
impl From<Vec<<TimestampNanosecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<TimestampNanosecondType>
sourcefn from(
data: Vec<<TimestampNanosecondType as ArrowPrimitiveType>::Native>
) -> Self
fn from(
data: Vec<<TimestampNanosecondType as ArrowPrimitiveType>::Native>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<TimestampSecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<TimestampSecondType>
impl From<Vec<<TimestampSecondType as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<TimestampSecondType>
sourcefn from(data: Vec<<TimestampSecondType as ArrowPrimitiveType>::Native>) -> Self
fn from(data: Vec<<TimestampSecondType as ArrowPrimitiveType>::Native>) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<UInt16Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<UInt16Type>
impl From<Vec<<UInt16Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<UInt16Type>
sourcefn from(data: Vec<<UInt16Type as ArrowPrimitiveType>::Native>) -> Self
fn from(data: Vec<<UInt16Type as ArrowPrimitiveType>::Native>) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<UInt32Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<UInt32Type>
impl From<Vec<<UInt32Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<UInt32Type>
sourcefn from(data: Vec<<UInt32Type as ArrowPrimitiveType>::Native>) -> Self
fn from(data: Vec<<UInt32Type as ArrowPrimitiveType>::Native>) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<UInt64Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<UInt64Type>
impl From<Vec<<UInt64Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<UInt64Type>
sourcefn from(data: Vec<<UInt64Type as ArrowPrimitiveType>::Native>) -> Self
fn from(data: Vec<<UInt64Type as ArrowPrimitiveType>::Native>) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<<UInt8Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<UInt8Type>
impl From<Vec<<UInt8Type as ArrowPrimitiveType>::Native, Global>> for PrimitiveArray<UInt8Type>
sourceimpl From<Vec<Option<<Date32Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Date32Type>
impl From<Vec<Option<<Date32Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Date32Type>
sourcefn from(data: Vec<Option<<Date32Type as ArrowPrimitiveType>::Native>>) -> Self
fn from(data: Vec<Option<<Date32Type as ArrowPrimitiveType>::Native>>) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<Date64Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Date64Type>
impl From<Vec<Option<<Date64Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Date64Type>
sourcefn from(data: Vec<Option<<Date64Type as ArrowPrimitiveType>::Native>>) -> Self
fn from(data: Vec<Option<<Date64Type as ArrowPrimitiveType>::Native>>) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<DurationMicrosecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<DurationMicrosecondType>
impl From<Vec<Option<<DurationMicrosecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<DurationMicrosecondType>
sourcefn from(
data: Vec<Option<<DurationMicrosecondType as ArrowPrimitiveType>::Native>>
) -> Self
fn from(
data: Vec<Option<<DurationMicrosecondType as ArrowPrimitiveType>::Native>>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<DurationMillisecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<DurationMillisecondType>
impl From<Vec<Option<<DurationMillisecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<DurationMillisecondType>
sourcefn from(
data: Vec<Option<<DurationMillisecondType as ArrowPrimitiveType>::Native>>
) -> Self
fn from(
data: Vec<Option<<DurationMillisecondType as ArrowPrimitiveType>::Native>>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<DurationNanosecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<DurationNanosecondType>
impl From<Vec<Option<<DurationNanosecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<DurationNanosecondType>
sourcefn from(
data: Vec<Option<<DurationNanosecondType as ArrowPrimitiveType>::Native>>
) -> Self
fn from(
data: Vec<Option<<DurationNanosecondType as ArrowPrimitiveType>::Native>>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<DurationSecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<DurationSecondType>
impl From<Vec<Option<<DurationSecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<DurationSecondType>
sourcefn from(
data: Vec<Option<<DurationSecondType as ArrowPrimitiveType>::Native>>
) -> Self
fn from(
data: Vec<Option<<DurationSecondType as ArrowPrimitiveType>::Native>>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<Float32Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Float32Type>
impl From<Vec<Option<<Float32Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Float32Type>
sourcefn from(data: Vec<Option<<Float32Type as ArrowPrimitiveType>::Native>>) -> Self
fn from(data: Vec<Option<<Float32Type as ArrowPrimitiveType>::Native>>) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<Float64Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Float64Type>
impl From<Vec<Option<<Float64Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Float64Type>
sourcefn from(data: Vec<Option<<Float64Type as ArrowPrimitiveType>::Native>>) -> Self
fn from(data: Vec<Option<<Float64Type as ArrowPrimitiveType>::Native>>) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<Int16Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Int16Type>
impl From<Vec<Option<<Int16Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Int16Type>
sourceimpl From<Vec<Option<<Int32Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Int32Type>
impl From<Vec<Option<<Int32Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Int32Type>
sourceimpl From<Vec<Option<<Int64Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Int64Type>
impl From<Vec<Option<<Int64Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Int64Type>
sourceimpl From<Vec<Option<<Int8Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Int8Type>
impl From<Vec<Option<<Int8Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Int8Type>
sourceimpl From<Vec<Option<<IntervalDayTimeType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<IntervalDayTimeType>
impl From<Vec<Option<<IntervalDayTimeType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<IntervalDayTimeType>
sourcefn from(
data: Vec<Option<<IntervalDayTimeType as ArrowPrimitiveType>::Native>>
) -> Self
fn from(
data: Vec<Option<<IntervalDayTimeType as ArrowPrimitiveType>::Native>>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<IntervalMonthDayNanoType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<IntervalMonthDayNanoType>
impl From<Vec<Option<<IntervalMonthDayNanoType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<IntervalMonthDayNanoType>
sourcefn from(
data: Vec<Option<<IntervalMonthDayNanoType as ArrowPrimitiveType>::Native>>
) -> Self
fn from(
data: Vec<Option<<IntervalMonthDayNanoType as ArrowPrimitiveType>::Native>>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<IntervalYearMonthType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<IntervalYearMonthType>
impl From<Vec<Option<<IntervalYearMonthType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<IntervalYearMonthType>
sourcefn from(
data: Vec<Option<<IntervalYearMonthType as ArrowPrimitiveType>::Native>>
) -> Self
fn from(
data: Vec<Option<<IntervalYearMonthType as ArrowPrimitiveType>::Native>>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<Time32MillisecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Time32MillisecondType>
impl From<Vec<Option<<Time32MillisecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Time32MillisecondType>
sourcefn from(
data: Vec<Option<<Time32MillisecondType as ArrowPrimitiveType>::Native>>
) -> Self
fn from(
data: Vec<Option<<Time32MillisecondType as ArrowPrimitiveType>::Native>>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<Time32SecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Time32SecondType>
impl From<Vec<Option<<Time32SecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Time32SecondType>
sourcefn from(
data: Vec<Option<<Time32SecondType as ArrowPrimitiveType>::Native>>
) -> Self
fn from(
data: Vec<Option<<Time32SecondType as ArrowPrimitiveType>::Native>>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<Time64MicrosecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Time64MicrosecondType>
impl From<Vec<Option<<Time64MicrosecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Time64MicrosecondType>
sourcefn from(
data: Vec<Option<<Time64MicrosecondType as ArrowPrimitiveType>::Native>>
) -> Self
fn from(
data: Vec<Option<<Time64MicrosecondType as ArrowPrimitiveType>::Native>>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<Time64NanosecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Time64NanosecondType>
impl From<Vec<Option<<Time64NanosecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<Time64NanosecondType>
sourcefn from(
data: Vec<Option<<Time64NanosecondType as ArrowPrimitiveType>::Native>>
) -> Self
fn from(
data: Vec<Option<<Time64NanosecondType as ArrowPrimitiveType>::Native>>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<TimestampMicrosecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<TimestampMicrosecondType>
impl From<Vec<Option<<TimestampMicrosecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<TimestampMicrosecondType>
sourcefn from(
data: Vec<Option<<TimestampMicrosecondType as ArrowPrimitiveType>::Native>>
) -> Self
fn from(
data: Vec<Option<<TimestampMicrosecondType as ArrowPrimitiveType>::Native>>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<TimestampMillisecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<TimestampMillisecondType>
impl From<Vec<Option<<TimestampMillisecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<TimestampMillisecondType>
sourcefn from(
data: Vec<Option<<TimestampMillisecondType as ArrowPrimitiveType>::Native>>
) -> Self
fn from(
data: Vec<Option<<TimestampMillisecondType as ArrowPrimitiveType>::Native>>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<TimestampNanosecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<TimestampNanosecondType>
impl From<Vec<Option<<TimestampNanosecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<TimestampNanosecondType>
sourcefn from(
data: Vec<Option<<TimestampNanosecondType as ArrowPrimitiveType>::Native>>
) -> Self
fn from(
data: Vec<Option<<TimestampNanosecondType as ArrowPrimitiveType>::Native>>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<TimestampSecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<TimestampSecondType>
impl From<Vec<Option<<TimestampSecondType as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<TimestampSecondType>
sourcefn from(
data: Vec<Option<<TimestampSecondType as ArrowPrimitiveType>::Native>>
) -> Self
fn from(
data: Vec<Option<<TimestampSecondType as ArrowPrimitiveType>::Native>>
) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<UInt16Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<UInt16Type>
impl From<Vec<Option<<UInt16Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<UInt16Type>
sourcefn from(data: Vec<Option<<UInt16Type as ArrowPrimitiveType>::Native>>) -> Self
fn from(data: Vec<Option<<UInt16Type as ArrowPrimitiveType>::Native>>) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<UInt32Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<UInt32Type>
impl From<Vec<Option<<UInt32Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<UInt32Type>
sourcefn from(data: Vec<Option<<UInt32Type as ArrowPrimitiveType>::Native>>) -> Self
fn from(data: Vec<Option<<UInt32Type as ArrowPrimitiveType>::Native>>) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<UInt64Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<UInt64Type>
impl From<Vec<Option<<UInt64Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<UInt64Type>
sourcefn from(data: Vec<Option<<UInt64Type as ArrowPrimitiveType>::Native>>) -> Self
fn from(data: Vec<Option<<UInt64Type as ArrowPrimitiveType>::Native>>) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Option<<UInt8Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<UInt8Type>
impl From<Vec<Option<<UInt8Type as ArrowPrimitiveType>::Native>, Global>> for PrimitiveArray<UInt8Type>
sourceimpl<'a, T: ArrowPrimitiveType, Ptr: Into<NativeAdapter<T>>> FromIterator<Ptr> for PrimitiveArray<T>
impl<'a, T: ArrowPrimitiveType, Ptr: Into<NativeAdapter<T>>> FromIterator<Ptr> for PrimitiveArray<T>
sourcefn from_iter<I: IntoIterator<Item = Ptr>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = Ptr>>(iter: I) -> Self
Creates a value from an iterator. Read more
sourceimpl<'a, T: ArrowPrimitiveType> IntoIterator for &'a PrimitiveArray<T>
impl<'a, T: ArrowPrimitiveType> IntoIterator for &'a PrimitiveArray<T>
type Item = Option<<T as ArrowPrimitiveType>::Native>
type Item = Option<<T as ArrowPrimitiveType>::Native>
The type of the elements being iterated over.
type IntoIter = PrimitiveIter<'a, T>
type IntoIter = PrimitiveIter<'a, T>
Which kind of iterator are we turning this into?
sourceimpl<T: ArrowPrimitiveType> JsonEqual for PrimitiveArray<T>
impl<T: ArrowPrimitiveType> JsonEqual for PrimitiveArray<T>
Implement array equals for numeric type
sourceimpl<T: ArrowPrimitiveType> PartialEq<PrimitiveArray<T>> for PrimitiveArray<T>
impl<T: ArrowPrimitiveType> PartialEq<PrimitiveArray<T>> for PrimitiveArray<T>
sourceimpl<T: ArrowPrimitiveType> PartialEq<PrimitiveArray<T>> for Value
impl<T: ArrowPrimitiveType> PartialEq<PrimitiveArray<T>> for Value
Auto Trait Implementations
impl<T> RefUnwindSafe for PrimitiveArray<T> where
<T as ArrowPrimitiveType>::Native: RefUnwindSafe,
impl<T> Send for PrimitiveArray<T>
impl<T> Sync for PrimitiveArray<T>
impl<T> Unpin for PrimitiveArray<T>
impl<T> UnwindSafe for PrimitiveArray<T> where
<T as ArrowPrimitiveType>::Native: RefUnwindSafe,
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