Skip to main content

ArrayLayout

Enum ArrayLayout 

Source
#[non_exhaustive]
pub enum ArrayLayout { Null, Bitmap { values: BitmapSlice, }, FixedWidth { values: BufferSlice, }, VariableWidth { offsets: BufferSlice, values: BufferSlice, }, View { views: BufferSlice, buffers: Vec<BufferSlice>, }, List { offsets: BufferSlice, values: Box<ArrayDescriptor>, }, ListView { offsets: BufferSlice, sizes: BufferSlice, values: Box<ArrayDescriptor>, }, FixedSizeList { values: Box<ArrayDescriptor>, }, Struct { fields: Vec<ArrayDescriptor>, }, Union { type_ids: BufferSlice, offsets: Option<BufferSlice>, fields: Vec<UnionArray>, }, Dictionary { keys: Box<ArrayDescriptor>, values: Box<ArrayDescriptor>, }, RunEndEncoded { run_ends: Box<ArrayDescriptor>, values: Box<ArrayDescriptor>, }, }
Expand description

The physical buffer layout for one recursive native array descriptor.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Null

An array with no value buffers.

§

Bitmap

Bit-packed boolean values.

Fields

§values: BitmapSlice

Boolean value bits.

§

FixedWidth

Fixed-width primitive, decimal, temporal, interval, or binary values.

Fields

§values: BufferSlice

Consecutive little-endian values.

§

VariableWidth

Variable-width binary or UTF-8 values.

Fields

§offsets: BufferSlice

Consecutive signed 32-bit or 64-bit offsets.

§values: BufferSlice

Concatenated value bytes.

§

View

Arrow binary-view or UTF-8-view values.

Fields

§views: BufferSlice

Consecutive Arrow view records.

§buffers: Vec<BufferSlice>

Buffers addressed by non-inline view records.

§

List

Variable-size list or map values.

Fields

§offsets: BufferSlice

Consecutive signed 32-bit or 64-bit child offsets.

§values: Box<ArrayDescriptor>

Recursively described child array.

§

ListView

List-view values with independent offsets and sizes.

Fields

§offsets: BufferSlice

Consecutive signed 32-bit or 64-bit child offsets.

§sizes: BufferSlice

Consecutive signed 32-bit or 64-bit child sizes.

§values: Box<ArrayDescriptor>

Recursively described child array.

§

FixedSizeList

Fixed-size list values.

Fields

§values: Box<ArrayDescriptor>

Recursively described child array.

§

Struct

Struct values with children in schema order.

Fields

§fields: Vec<ArrayDescriptor>

Recursively described child arrays.

§

Union

Sparse or dense union values.

Fields

§type_ids: BufferSlice

Signed type ID for every logical value.

§offsets: Option<BufferSlice>

Dense child offsets; absent for a sparse union.

§fields: Vec<UnionArray>

Child arrays paired with their signed type IDs.

§

Dictionary

Dictionary keys and dictionary values, retaining the source encoding.

Fields

§keys: Box<ArrayDescriptor>

Integer keys for logical values.

§values: Box<ArrayDescriptor>

Dictionary values addressed by the keys.

§

RunEndEncoded

Run ends and run values, retaining the source encoding.

Fields

§run_ends: Box<ArrayDescriptor>

Signed integer run-end array.

§values: Box<ArrayDescriptor>

Logical value for each run.

Trait Implementations§

Source§

impl Clone for ArrayLayout

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ArrayLayout

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ArrayLayout

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for ArrayLayout

Source§

impl PartialEq for ArrayLayout

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for ArrayLayout

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ArrayLayout

Auto Trait Implementations§

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.