pub struct OwnedArrayData { /* private fields */ }
Expand description
Owned ArrayData
with serialized metadata, backed by heap-allocated memory.
Implementations§
Source§impl OwnedArrayData
impl OwnedArrayData
pub fn try_new( encoding: EncodingRef, dtype: DType, len: usize, metadata: Arc<dyn ArrayMetadata>, buffer: Option<Buffer>, children: Arc<[ArrayData]>, statistics: StatsSet, ) -> VortexResult<Self>
pub fn encoding(&self) -> EncodingRef
pub fn dtype(&self) -> &DType
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn metadata(&self) -> &Arc<dyn ArrayMetadata>
pub fn buffer(&self) -> Option<&Buffer>
pub fn into_buffer(self) -> Option<Buffer>
pub fn child( &self, index: usize, dtype: &DType, len: usize, ) -> VortexResult<&ArrayData>
pub fn nchildren(&self) -> usize
pub fn children(&self) -> &[ArrayData]
pub fn statistics(&self) -> &dyn Statistics
Trait Implementations§
Source§impl Clone for OwnedArrayData
impl Clone for OwnedArrayData
Source§fn clone(&self) -> OwnedArrayData
fn clone(&self) -> OwnedArrayData
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OwnedArrayData
impl Debug for OwnedArrayData
Source§impl From<ArrayData> for OwnedArrayData
impl From<ArrayData> for OwnedArrayData
Source§fn from(value: ArrayData) -> OwnedArrayData
fn from(value: ArrayData) -> OwnedArrayData
Converts to this type from the input type.
Source§impl From<OwnedArrayData> for ArrayData
impl From<OwnedArrayData> for ArrayData
Source§fn from(value: OwnedArrayData) -> ArrayData
fn from(value: OwnedArrayData) -> ArrayData
Converts to this type from the input type.
Source§impl Statistics for OwnedArrayData
impl Statistics for OwnedArrayData
Source§fn get(&self, stat: Stat) -> Option<Scalar>
fn get(&self, stat: Stat) -> Option<Scalar>
Returns the value of the statistic only if it’s present
fn set(&self, stat: Stat, value: Scalar)
Source§fn compute(&self, stat: Stat) -> Option<Scalar>
fn compute(&self, stat: Stat) -> Option<Scalar>
Computes the value of the stat if it’s not present
Source§fn compute_all(&self, stats: &[Stat]) -> VortexResult<StatsSet>
fn compute_all(&self, stats: &[Stat]) -> VortexResult<StatsSet>
Compute all of the requested statistics (if not already present)
Returns a StatsSet with the requested stats and any additional available stats
Source§impl ToArrayData for OwnedArrayData
impl ToArrayData for OwnedArrayData
Auto Trait Implementations§
impl !Freeze for OwnedArrayData
impl !RefUnwindSafe for OwnedArrayData
impl Send for OwnedArrayData
impl Sync for OwnedArrayData
impl Unpin for OwnedArrayData
impl !UnwindSafe for OwnedArrayData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more