#[non_exhaustive]pub enum Array {
Show 38 variants
Null(NullArray),
Boolean(BooleanArray),
Int8(PrimitiveArray<i8>),
Int16(PrimitiveArray<i16>),
Int32(PrimitiveArray<i32>),
Int64(PrimitiveArray<i64>),
UInt8(PrimitiveArray<u8>),
UInt16(PrimitiveArray<u16>),
UInt32(PrimitiveArray<u32>),
UInt64(PrimitiveArray<u64>),
Float16(PrimitiveArray<f16>),
Float32(PrimitiveArray<f32>),
Float64(PrimitiveArray<f64>),
Date32(PrimitiveArray<i32>),
Date64(PrimitiveArray<i64>),
Time32(TimeArray<i32>),
Time64(TimeArray<i64>),
Timestamp(TimestampArray),
Duration(TimeArray<i64>),
YearMonthInterval(PrimitiveArray<i32>),
DayTimeInterval(PrimitiveArray<DayTimeInterval>),
MonthDayNanoInterval(PrimitiveArray<MonthDayNanoInterval>),
Utf8(BytesArray<i32>),
LargeUtf8(BytesArray<i64>),
Utf8View(BytesViewArray),
Binary(BytesArray<i32>),
LargeBinary(BytesArray<i64>),
FixedSizeBinary(FixedSizeBinaryArray),
BinaryView(BytesViewArray),
Decimal128(DecimalArray<i128>),
Struct(StructArray),
List(ListArray<i32>),
LargeList(ListArray<i64>),
FixedSizeList(FixedSizeListArray),
Dictionary(DictionaryArray),
RunEndEncoded(RunEndEncodedArray),
Map(MapArray),
Union(UnionArray),
}Expand description
An array with owned data
The corresponding view is View.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Null(NullArray)
An array without data
Boolean(BooleanArray)
bool array
Int8(PrimitiveArray<i8>)
i8 array
Int16(PrimitiveArray<i16>)
i16 array
Int32(PrimitiveArray<i32>)
i32 array
Int64(PrimitiveArray<i64>)
i64 array
UInt8(PrimitiveArray<u8>)
u8 array
UInt16(PrimitiveArray<u16>)
u16 array
UInt32(PrimitiveArray<u32>)
u32 array
UInt64(PrimitiveArray<u64>)
u64 array
Float16(PrimitiveArray<f16>)
f16 array
Float32(PrimitiveArray<f32>)
f32 array
Float64(PrimitiveArray<f64>)
f64 array
Date32(PrimitiveArray<i32>)
An i32 array of dates
Date64(PrimitiveArray<i64>)
An i64 array of dates
Time32(TimeArray<i32>)
An i32 array of times
Time64(TimeArray<i64>)
An i64 array of times
Timestamp(TimestampArray)
An i64 array of timestamps
Duration(TimeArray<i64>)
An i64 array of durations
YearMonthInterval(PrimitiveArray<i32>)
Interval with YearMonth unit
Interval arrays are not supported for arrow2.
DayTimeInterval(PrimitiveArray<DayTimeInterval>)
Interval with DayTime unit
Interval arrays are not supported for arrow2.
MonthDayNanoInterval(PrimitiveArray<MonthDayNanoInterval>)
Interval with MonthDayNano unit
Interval arrays are not supported for arrow2.
Utf8(BytesArray<i32>)
A [u8] array with i32 offsets interpreted as strings
LargeUtf8(BytesArray<i64>)
A [u8] array with i64 offsets interpreted as strings
Utf8View(BytesViewArray)
A [u8] array interpreted as strings with support for small inlined slices and references
to external buffers
Binary(BytesArray<i32>)
A [u8] array with i32 offsets
LargeBinary(BytesArray<i64>)
A [u8] array with i64 offsets
FixedSizeBinary(FixedSizeBinaryArray)
A [u8; N] array with i32 offsets
BinaryView(BytesViewArray)
A [u8] array with support for small inlined slices and references to external buffers
Decimal128(DecimalArray<i128>)
An i128 array of decimals
Struct(StructArray)
An array of structs
List(ListArray<i32>)
An array of lists with i32 offsets
LargeList(ListArray<i64>)
An array of lists with i64 offsets
FixedSizeList(FixedSizeListArray)
An array of fixed sized list with i32 offsets
Dictionary(DictionaryArray)
An array of dictionaries
RunEndEncoded(RunEndEncodedArray)
An array of run end encoded values
Map(MapArray)
An array of maps
Union(UnionArray)
An array of unions
Implementations§
Trait Implementations§
§impl TryFrom<Array> for Arc<dyn Array>
Conversion to arrow arrays (requires one of the arrow-{version} features)
impl TryFrom<Array> for Arc<dyn Array>
Conversion to arrow arrays (requires one of the arrow-{version} features)
§impl TryFrom<Array> for Box<dyn Array>
Conversion to arrow2 arrays (requires one of the arrow2-{version} features)
impl TryFrom<Array> for Box<dyn Array>
Conversion to arrow2 arrays (requires one of the arrow2-{version} features)
impl StructuralPartialEq for Array
Auto Trait Implementations§
impl Freeze for Array
impl RefUnwindSafe for Array
impl Send for Array
impl Sync for Array
impl Unpin for Array
impl UnsafeUnpin for Array
impl UnwindSafe for Array
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
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>
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>
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