pub struct LogicalArray<T: LogicalArrayType, const NULLABLE: bool, Buffer: BufferType, OffsetItem: OffsetElement, UnionLayout: UnionType>(/* private fields */)
where
    <T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout>: Validity<NULLABLE>;
Expand description

An array for LogicalArrayType items, that are stored in Arrow arrays, but convertable from and to theirself via this array wrapper.

Trait Implementations§

source§

impl<T, const NULLABLE: bool, Buffer: BufferType, OffsetItem: OffsetElement, UnionLayout: UnionType> Array for LogicalArray<T, NULLABLE, Buffer, OffsetItem, UnionLayout>
where <T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout>: Validity<NULLABLE>, T: Nullability<NULLABLE> + LogicalArrayType,

§

type Item = <T as Nullability<NULLABLE>>::Item

The items stored in this array.
source§

impl<T, const NULLABLE: bool, Buffer: BufferType, OffsetItem: OffsetElement, UnionLayout: UnionType> ArrowArray for LogicalArray<T, NULLABLE, Buffer, OffsetItem, UnionLayout>
where <T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout>: Validity<NULLABLE> + ArrowArray, T: Nullability<NULLABLE> + LogicalArrayType,

Available on crate feature arrow-rs only.
§

type Array = <<T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout> as ArrowArray>::Array

The corresponding arrow array
source§

fn as_field(name: &str) -> Field

Returns the field of this array.
source§

impl<T: LogicalArrayType, const NULLABLE: bool, Buffer: BufferType, OffsetItem: OffsetElement, UnionLayout: UnionType> Default for LogicalArray<T, NULLABLE, Buffer, OffsetItem, UnionLayout>
where <T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout>: Validity<NULLABLE>, <<T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout> as Validity<NULLABLE>>::Storage<Buffer>: Default,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<T: LogicalArrayType, const NULLABLE: bool, Buffer: BufferType, OffsetItem: OffsetElement, UnionLayout: UnionType> Extend<T> for LogicalArray<T, NULLABLE, Buffer, OffsetItem, UnionLayout>
where <T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout>: Validity<NULLABLE>, <<T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout> as Validity<NULLABLE>>::Storage<Buffer>: Extend<<<T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout> as Array>::Item>,

source§

fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)

Extends a collection with the contents of an iterator. Read more
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl<T: LogicalArrayType, const NULLABLE: bool, Buffer: BufferType, OffsetItem: OffsetElement, UnionLayout: UnionType> From<Arc<dyn Array>> for LogicalArray<T, NULLABLE, Buffer, OffsetItem, UnionLayout>
where <T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout>: Validity<NULLABLE>, <<T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout> as Validity<NULLABLE>>::Storage<Buffer>: From<Arc<dyn Array>>,

Available on crate feature arrow-rs only.
source§

fn from(value: Arc<dyn Array>) -> Self

Converts to this type from the input type.
source§

impl<T: LogicalArrayType, const NULLABLE: bool, Buffer: BufferType, OffsetItem: OffsetElement, UnionLayout: UnionType> From<LogicalArray<T, NULLABLE, Buffer, OffsetItem, UnionLayout>> for FixedSizeListArray
where <T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout>: Validity<NULLABLE>, FixedSizeListArray: From<<<T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout> as Validity<NULLABLE>>::Storage<Buffer>>,

Available on crate feature arrow-rs only.
source§

fn from( value: LogicalArray<T, NULLABLE, Buffer, OffsetItem, UnionLayout> ) -> Self

Converts to this type from the input type.
source§

impl<Buffer: BufferType, OffsetItem: OffsetElement, UnionLayout: UnionType> From<LogicalArray<Uuid, false, Buffer, OffsetItem, UnionLayout>> for FixedSizeListArray<16, FixedSizePrimitiveArray<u8, false, Buffer>, false, Buffer>

Available on crate feature uuid only.
source§

fn from( value: LogicalArray<Uuid, false, Buffer, OffsetItem, UnionLayout> ) -> Self

Converts to this type from the input type.
source§

impl<T: LogicalArrayType, const NULLABLE: bool, Buffer: BufferType, OffsetItem: OffsetElement, UnionLayout: UnionType> FromIterator<T> for LogicalArray<T, NULLABLE, Buffer, OffsetItem, UnionLayout>
where <T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout>: Validity<NULLABLE>, <<T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout> as Validity<NULLABLE>>::Storage<Buffer>: FromIterator<<<T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout> as Array>::Item>,

source§

fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self

Creates a value from an iterator. Read more
source§

impl<T: LogicalArrayType, const NULLABLE: bool, Buffer: BufferType, OffsetItem: OffsetElement, UnionLayout: UnionType> Length for LogicalArray<T, NULLABLE, Buffer, OffsetItem, UnionLayout>
where <T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout>: Validity<NULLABLE>, <<T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout> as Validity<NULLABLE>>::Storage<Buffer>: Length,

source§

fn len(&self) -> usize

Returns the number of elements in the collection, also referred to as its length.
source§

fn is_empty(&self) -> bool

Returns true if there are no elements in the collection.

Auto Trait Implementations§

§

impl<T, const NULLABLE: bool, Buffer, OffsetItem, UnionLayout> RefUnwindSafe for LogicalArray<T, NULLABLE, Buffer, OffsetItem, UnionLayout>
where <<T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout> as Validity<NULLABLE>>::Storage<Buffer>: RefUnwindSafe,

§

impl<T, const NULLABLE: bool, Buffer, OffsetItem, UnionLayout> Send for LogicalArray<T, NULLABLE, Buffer, OffsetItem, UnionLayout>
where <<T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout> as Validity<NULLABLE>>::Storage<Buffer>: Send,

§

impl<T, const NULLABLE: bool, Buffer, OffsetItem, UnionLayout> Sync for LogicalArray<T, NULLABLE, Buffer, OffsetItem, UnionLayout>
where <<T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout> as Validity<NULLABLE>>::Storage<Buffer>: Sync,

§

impl<T, const NULLABLE: bool, Buffer, OffsetItem, UnionLayout> Unpin for LogicalArray<T, NULLABLE, Buffer, OffsetItem, UnionLayout>
where <<T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout> as Validity<NULLABLE>>::Storage<Buffer>: Unpin,

§

impl<T, const NULLABLE: bool, Buffer, OffsetItem, UnionLayout> UnwindSafe for LogicalArray<T, NULLABLE, Buffer, OffsetItem, UnionLayout>
where <<T as LogicalArrayType>::Array<Buffer, OffsetItem, UnionLayout> as Validity<NULLABLE>>::Storage<Buffer>: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,