Struct NullArray

Source
pub struct NullArray<T: Unit = (), Nullable: Nullability = NonNullable, Buffer: BufferType = VecBuffer>(/* private fields */);
Expand description

A sequence of nulls.

Trait Implementations§

Source§

impl<T: Unit, Nullable: Nullability, Buffer: BufferType> Array for NullArray<T, Nullable, Buffer>

Source§

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

The items stored in this array.
Source§

impl<T: Unit, Nullable: Nullability, Buffer: BufferType> Array for NullArray<T, Nullable, Buffer>

Available on crate feature arrow-rs only.
Source§

type Array = NullArray

The corresponding arrow array
Source§

fn as_field(name: &str) -> Field

Returns the field of this array.
Source§

fn data_type() -> DataType

Returns the data type of this array.
Source§

impl<T: Unit, Buffer: BufferType> BitmapRef for NullArray<T, Nullable, Buffer>

Source§

type Buffer = Buffer

The buffer type of the bitmap.
Source§

fn bitmap_ref(&self) -> &Bitmap<Self::Buffer>

Returns a reference to an immutable Bitmap.
Source§

impl<T: Unit, Buffer: BufferType> BitmapRefMut for NullArray<T, Nullable, Buffer>

Source§

fn bitmap_ref_mut(&mut self) -> &mut Bitmap<Self::Buffer>

Returns a mutable reference to a Bitmap.
Source§

impl<T: Unit, Nullable: Nullability, Buffer: BufferType> Clone for NullArray<T, Nullable, Buffer>
where Nullable::Collection<Nulls<T>, Buffer>: Clone,

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Unit, Nullable: Nullability, Buffer: BufferType> Default for NullArray<T, Nullable, Buffer>
where Nullable::Collection<Nulls<T>, Buffer>: Default,

Source§

fn default() -> Self

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

impl<T: Unit, U, Nullable: Nullability, Buffer: BufferType> Extend<U> for NullArray<T, Nullable, Buffer>
where Nullable::Collection<Nulls<T>, Buffer>: Extend<U>,

Source§

fn extend<I: IntoIterator<Item = U>>(&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: Unit, Buffer: BufferType> From<Arc<dyn Array>> for NullArray<T, NonNullable, Buffer>
where Self: From<NullArray>,

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: Unit, Buffer: BufferType> From<NullArray<T, NonNullable, Buffer>> for Arc<dyn Array>
where NullArray: From<NullArray<T, NonNullable, Buffer>>,

Available on crate feature arrow-rs only.
Source§

fn from(value: NullArray<T, NonNullable, Buffer>) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit, Buffer: BufferType> From<NullArray<T, NonNullable, Buffer>> for NullArray

Available on crate feature arrow-rs only.
Source§

fn from(value: NullArray<T, NonNullable, Buffer>) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit, Buffer: BufferType> From<NullArray<T, NonNullable, Buffer>> for NullArray<T, Nullable, Buffer>
where Bitmap<Buffer>: FromIterator<bool>,

Source§

fn from(value: NullArray<T, NonNullable, Buffer>) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit, Buffer: BufferType> From<NullArray> for NullArray<T, NonNullable, Buffer>

Available on crate feature arrow-rs only.
Source§

fn from(value: NullArray) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit, U, Nullable: Nullability, Buffer: BufferType> FromIterator<U> for NullArray<T, Nullable, Buffer>
where Nullable::Collection<Nulls<T>, Buffer>: FromIterator<U>,

Source§

fn from_iter<I>(iter: I) -> Self
where I: IntoIterator<Item = U>,

Creates a value from an iterator. Read more
Source§

impl<T: Unit, Nullable: Nullability, Buffer: BufferType> Index for NullArray<T, Nullable, Buffer>
where Nullable::Collection<Nulls<T>, Buffer>: Index,

Source§

type Item<'a> = <<Nullable as Nullability>::Collection<Nulls<T>, Buffer> as Index>::Item<'a> where Self: 'a

The item.
Source§

unsafe fn index_unchecked(&self, index: usize) -> Self::Item<'_>

Returns the value at given index. Skips bound checking. Read more
Source§

fn index(&self, index: usize) -> Option<Self::Item<'_>>

Returns the value at given index. Returns None if the index is out of range.
Source§

fn index_checked(&self, index: usize) -> Self::Item<'_>

Returns the value at given index. Panics if the index is out of bounds. Read more
Source§

impl<T: Unit, Nullable: Nullability, Buffer: BufferType> IntoIterator for NullArray<T, Nullable, Buffer>
where Nullable::Collection<Nulls<T>, Buffer>: IntoIterator,

Source§

type Item = <<Nullable as Nullability>::Collection<Nulls<T>, Buffer> as IntoIterator>::Item

The type of the elements being iterated over.
Source§

type IntoIter = <<Nullable as Nullability>::Collection<Nulls<T>, Buffer> as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<T: Unit, Nullable: Nullability, Buffer: BufferType> Length for NullArray<T, Nullable, Buffer>
where Nullable::Collection<Nulls<T>, 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.
Source§

impl<T: Unit, Buffer: BufferType> ValidityBitmap for NullArray<T, Nullable, Buffer>

Source§

fn is_null(&self, index: usize) -> Option<bool>

Returns true if the element at position index is null.
Source§

unsafe fn is_null_unchecked(&self, index: usize) -> bool

Returns true if the element at position index is null, without performing any bounds checking. Read more
Source§

fn null_count(&self) -> usize

Returns the number of null elements.
Source§

fn is_valid(&self, index: usize) -> Option<bool>

Returns true if the element at position index is valid.
Source§

unsafe fn is_valid_unchecked(&self, index: usize) -> bool

Returns true if the element at position index is valid, without performing any bounds checking. Read more
Source§

fn valid_count(&self) -> usize

Returns the number of valid elements.
Source§

fn any_null(&self) -> bool

Returns true if the array contains at least one null element.
Source§

fn all_null(&self) -> bool

Returns true if all the elements are null.
Source§

fn any_valid(&self) -> bool

Returns true if the array contains at least one valid element.
Source§

fn all_valid(&self) -> bool

Returns true if all the elements are valid.

Auto Trait Implementations§

§

impl<T, Nullable, Buffer> Freeze for NullArray<T, Nullable, Buffer>
where <Nullable as Nullability>::Collection<Nulls<T>, Buffer>: Freeze,

§

impl<T, Nullable, Buffer> RefUnwindSafe for NullArray<T, Nullable, Buffer>
where <Nullable as Nullability>::Collection<Nulls<T>, Buffer>: RefUnwindSafe,

§

impl<T, Nullable, Buffer> Send for NullArray<T, Nullable, Buffer>
where <Nullable as Nullability>::Collection<Nulls<T>, Buffer>: Send,

§

impl<T, Nullable, Buffer> Sync for NullArray<T, Nullable, Buffer>
where <Nullable as Nullability>::Collection<Nulls<T>, Buffer>: Sync,

§

impl<T, Nullable, Buffer> Unpin for NullArray<T, Nullable, Buffer>
where <Nullable as Nullability>::Collection<Nulls<T>, Buffer>: Unpin,

§

impl<T, Nullable, Buffer> UnwindSafe for NullArray<T, Nullable, Buffer>
where <Nullable as Nullability>::Collection<Nulls<T>, 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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>,

Source§

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,