pub enum Array {
Data(ArrayData),
View(ArrayView),
}
Variants§
Implementations§
source§impl Array
impl Array
pub fn as_primitive(&self) -> PrimitiveArray
source§impl Array
impl Array
pub fn tree_display(&self) -> TreeDisplayWrapper<'_>
source§impl Array
impl Array
pub fn encoding(&self) -> EncodingRef
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn nbytes(&self) -> usize
pub fn child<'a>( &'a self, idx: usize, dtype: &'a DType, len: usize, ) -> Option<Self>
pub fn children(&self) -> Vec<Array>
pub fn nchildren(&self) -> usize
pub fn depth_first_traversal(&self) -> ArrayChildrenIterator ⓘ
sourcepub fn all_buffer_offsets(&self, alignment: usize) -> Vec<u64>
pub fn all_buffer_offsets(&self, alignment: usize) -> Vec<u64>
Return the buffer offsets and the total length of all buffers, assuming the given alignment. This includes all child buffers.
pub fn buffer(&self) -> Option<&Buffer>
pub fn into_buffer(self) -> Option<Buffer>
pub fn into_array_iterator(self) -> impl ArrayIterator
pub fn into_array_stream(self) -> impl ArrayStream
Trait Implementations§
source§impl FromIterator<Array> for ChunkedArray
impl FromIterator<Array> for ChunkedArray
source§impl IntoArrayData for Array
impl IntoArrayData for Array
fn into_array_data(self) -> ArrayData
source§impl IntoCanonical for Array
impl IntoCanonical for Array
IntoCanonical implementation for Array.
Canonicalizing an array requires potentially decompressing, so this requires a roundtrip through the array’s internal codec.
fn into_canonical(self) -> VortexResult<Canonical>
source§impl TryFrom<&Array> for ChunkedArray
impl TryFrom<&Array> for ChunkedArray
source§impl TryFrom<&Array> for ConstantArray
impl TryFrom<&Array> for ConstantArray
source§impl TryFrom<&Array> for ExtensionArray
impl TryFrom<&Array> for ExtensionArray
source§impl TryFrom<&Array> for PrimitiveArray
impl TryFrom<&Array> for PrimitiveArray
source§impl TryFrom<&Array> for SparseArray
impl TryFrom<&Array> for SparseArray
source§impl TryFrom<&Array> for StructArray
impl TryFrom<&Array> for StructArray
source§impl TryFrom<&Array> for TemporalArray
impl TryFrom<&Array> for TemporalArray
source§fn try_from(value: &Array) -> Result<Self, Self::Error>
fn try_from(value: &Array) -> Result<Self, Self::Error>
Try to specialize a generic Vortex array as a TemporalArray.
§Errors
If the provided Array does not have vortex.ext
encoding, an error will be returned.
If the provided Array does not have recognized ExtMetadata corresponding to one of the known
TemporalMetadata
variants, an error is returned.
§type Error = VortexError
type Error = VortexError
The type returned in the event of a conversion error.
source§impl TryFrom<&Array> for VarBinArray
impl TryFrom<&Array> for VarBinArray
source§impl TryFrom<&Array> for VarBinViewArray
impl TryFrom<&Array> for VarBinViewArray
source§impl TryFrom<Array> for ChunkedArray
impl TryFrom<Array> for ChunkedArray
source§impl TryFrom<Array> for ConstantArray
impl TryFrom<Array> for ConstantArray
source§impl TryFrom<Array> for ExtensionArray
impl TryFrom<Array> for ExtensionArray
source§impl TryFrom<Array> for PrimitiveArray
impl TryFrom<Array> for PrimitiveArray
source§impl TryFrom<Array> for SparseArray
impl TryFrom<Array> for SparseArray
source§impl TryFrom<Array> for StructArray
impl TryFrom<Array> for StructArray
source§impl TryFrom<Array> for TemporalArray
impl TryFrom<Array> for TemporalArray
source§impl TryFrom<Array> for VarBinArray
impl TryFrom<Array> for VarBinArray
Auto Trait Implementations§
impl !Freeze for Array
impl !RefUnwindSafe for Array
impl Send for Array
impl Sync for Array
impl Unpin for Array
impl !UnwindSafe for Array
Blanket Implementations§
source§impl<T> ArrayEncodingRef for Twhere
T: AsArray,
impl<T> ArrayEncodingRef for Twhere
T: AsArray,
fn encoding(&self) -> &'static dyn ArrayEncoding
source§impl<T> ArrayStatistics for Twhere
T: AsArray,
impl<T> ArrayStatistics for Twhere
T: AsArray,
fn statistics(&self) -> &dyn Statistics
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoArrayVariant for Twhere
T: IntoCanonical,
impl<T> IntoArrayVariant for Twhere
T: IntoCanonical,
fn into_null(self) -> Result<NullArray, VortexError>
fn into_bool(self) -> Result<BoolArray, VortexError>
fn into_primitive(self) -> Result<PrimitiveArray, VortexError>
fn into_struct(self) -> Result<StructArray, VortexError>
fn into_varbin(self) -> Result<VarBinArray, VortexError>
fn into_extension(self) -> Result<ExtensionArray, VortexError>
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 moresource§impl<S, T> SearchSorted<T> for S
impl<S, T> SearchSorted<T> for S
source§fn search_sorted_by<F, N>(
&self,
find: F,
side_find: N,
side: SearchSortedSide,
) -> SearchResult
fn search_sorted_by<F, N>( &self, find: F, side_find: N, side: SearchSortedSide, ) -> SearchResult
find function is used to find the element if it exists, if element exists side_find will be used to find desired index amongst equal values