pub struct PropertyLayer<Id, I>where
I: PropertyIndex,{ /* private fields */ }Expand description
Arrow-backed property layer.
§Performance
Cloning is O(1) for Arrow buffers plus descriptor clone cost.
Implementations§
Source§impl<Id, I> PropertyLayer<Id, I>where
I: PropertyIndex,
impl<Id, I> PropertyLayer<Id, I>where
I: PropertyIndex,
Sourcepub fn try_new_dense(
descriptor: PropertyLayerDescriptor<Id, I>,
values: ArrayRef,
) -> Result<Self, PropertyError>
pub fn try_new_dense( descriptor: PropertyLayerDescriptor<Id, I>, values: ArrayRef, ) -> Result<Self, PropertyError>
Builds a dense Arrow-backed property layer.
§Errors
Returns PropertyError when storage, Arrow type, or nullability is invalid.
§Performance
Validation is O(values.len()) only when nullability must be checked.
Sourcepub fn try_new_sparse(
descriptor: PropertyLayerDescriptor<Id, I>,
len: usize,
indices: Arc<PrimitiveArray<I::ArrowType>>,
values: ArrayRef,
default: Option<ArrayRef>,
) -> Result<Self, PropertyError>
pub fn try_new_sparse( descriptor: PropertyLayerDescriptor<Id, I>, len: usize, indices: Arc<PrimitiveArray<I::ArrowType>>, values: ArrayRef, default: Option<ArrayRef>, ) -> Result<Self, PropertyError>
Builds a sparse Arrow-backed property layer.
§Errors
Returns PropertyError when storage, Arrow type, default policy,
sparse index ordering, or nullability is invalid.
§Performance
Validation is O(indices.len() + default length).
Sourcepub const fn descriptor(&self) -> &PropertyLayerDescriptor<Id, I>
pub const fn descriptor(&self) -> &PropertyLayerDescriptor<Id, I>
Sourcepub const fn data(&self) -> &PropertyLayerData<I>
pub const fn data(&self) -> &PropertyLayerData<I>
Trait Implementations§
Source§impl<Id: Clone, I> Clone for PropertyLayer<Id, I>where
I: PropertyIndex + Clone,
impl<Id: Clone, I> Clone for PropertyLayer<Id, I>where
I: PropertyIndex + Clone,
Source§fn clone(&self) -> PropertyLayer<Id, I>
fn clone(&self) -> PropertyLayer<Id, I>
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<Id, I> Freeze for PropertyLayer<Id, I>where
Id: Freeze,
impl<Id, I> !RefUnwindSafe for PropertyLayer<Id, I>
impl<Id, I> Send for PropertyLayer<Id, I>
impl<Id, I> Sync for PropertyLayer<Id, I>
impl<Id, I> Unpin for PropertyLayer<Id, I>
impl<Id, I> UnsafeUnpin for PropertyLayer<Id, I>where
Id: UnsafeUnpin,
impl<Id, I> !UnwindSafe for PropertyLayer<Id, I>
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