#[non_exhaustive]pub enum DecodedPropertyData {
Dense {
values: ArrayRef,
},
Sparse {
indices: ArrayRef,
values: ArrayRef,
default: Option<ArrayRef>,
},
}Expand description
Arrow payload of a property layer decoded from snapshot bytes.
Dense layers expose a single value array indexed by logical position. Sparse
layers expose the explicit (indices, values) pair plus an optional
non-null default array; the index array’s arrow_schema::DataType matches
the encoded sparse index width.
§Performance
Cloning is O(1) (each variant holds ArrayRef handles).
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.
Dense
Dense Arrow values; values.len() equals the descriptor’s logical length.
Sparse
Sparse Arrow values plus optional default scalar.
Trait Implementations§
Source§impl Clone for DecodedPropertyData
impl Clone for DecodedPropertyData
Source§fn clone(&self) -> DecodedPropertyData
fn clone(&self) -> DecodedPropertyData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DecodedPropertyData
impl !RefUnwindSafe for DecodedPropertyData
impl Send for DecodedPropertyData
impl Sync for DecodedPropertyData
impl Unpin for DecodedPropertyData
impl UnsafeUnpin for DecodedPropertyData
impl !UnwindSafe for DecodedPropertyData
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
Mutably borrows from an owned value. Read more