#[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
Null
An array with no value buffers.
Bitmap
Bit-packed boolean values.
Fields
values: BitmapSliceBoolean value bits.
FixedWidth
Fixed-width primitive, decimal, temporal, interval, or binary values.
Fields
values: BufferSliceConsecutive little-endian values.
VariableWidth
Variable-width binary or UTF-8 values.
Fields
offsets: BufferSliceConsecutive signed 32-bit or 64-bit offsets.
values: BufferSliceConcatenated value bytes.
View
Arrow binary-view or UTF-8-view values.
Fields
views: BufferSliceConsecutive Arrow view records.
buffers: Vec<BufferSlice>Buffers addressed by non-inline view records.
List
Variable-size list or map values.
Fields
offsets: BufferSliceConsecutive 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: BufferSliceConsecutive signed 32-bit or 64-bit child offsets.
sizes: BufferSliceConsecutive 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: BufferSliceSigned 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.