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 From<Array> for RecordBatch
impl From<Array> for RecordBatch
source§impl From<Canonical> for Array
impl From<Canonical> for Array
This conversion is always “free” and should not touch underlying data. All it does is create an owned pointer to the underlying concrete array type.
This combined with the above IntoCanonical impl for Array allows simple two-way conversions between arbitrary Vortex encodings and canonical Arrow-compatible encodings.
source§impl From<ChunkedArray> for Array
impl From<ChunkedArray> for Array
source§fn from(value: ChunkedArray) -> Array
fn from(value: ChunkedArray) -> Array
source§impl From<ConstantArray> for Array
impl From<ConstantArray> for Array
source§fn from(value: ConstantArray) -> Array
fn from(value: ConstantArray) -> Array
source§impl From<ExtensionArray> for Array
impl From<ExtensionArray> for Array
source§fn from(value: ExtensionArray) -> Array
fn from(value: ExtensionArray) -> Array
source§impl From<PrimitiveArray> for Array
impl From<PrimitiveArray> for Array
source§fn from(value: PrimitiveArray) -> Array
fn from(value: PrimitiveArray) -> Array
source§impl From<RecordBatch> for Array
impl From<RecordBatch> for Array
source§fn from(value: RecordBatch) -> Self
fn from(value: RecordBatch) -> Self
source§impl From<SparseArray> for Array
impl From<SparseArray> for Array
source§fn from(value: SparseArray) -> Array
fn from(value: SparseArray) -> Array
source§impl From<StructArray> for Array
impl From<StructArray> for Array
source§fn from(value: StructArray) -> Array
fn from(value: StructArray) -> Array
source§impl From<TemporalArray> for Array
impl From<TemporalArray> for Array
source§fn from(value: TemporalArray) -> Self
fn from(value: TemporalArray) -> Self
source§impl From<VarBinArray> for Array
impl From<VarBinArray> for Array
source§fn from(value: VarBinArray) -> Array
fn from(value: VarBinArray) -> Array
source§impl From<VarBinViewArray> for Array
impl From<VarBinViewArray> for Array
source§fn from(value: VarBinViewArray) -> Array
fn from(value: VarBinViewArray) -> Array
source§impl FromArrowArray<&BooleanArray> for Array
impl FromArrowArray<&BooleanArray> for Array
fn from_arrow(value: &ArrowBooleanArray, nullable: bool) -> Self
source§impl<T: ByteArrayType> FromArrowArray<&GenericByteArray<T>> for Array
impl<T: ByteArrayType> FromArrowArray<&GenericByteArray<T>> for Array
fn from_arrow(value: &GenericByteArray<T>, nullable: bool) -> Self
source§impl<T: ByteViewType> FromArrowArray<&GenericByteViewArray<T>> for Array
impl<T: ByteViewType> FromArrowArray<&GenericByteViewArray<T>> for Array
fn from_arrow(value: &GenericByteViewArray<T>, nullable: bool) -> Self
source§impl FromArrowArray<&NullArray> for Array
impl FromArrowArray<&NullArray> for Array
fn from_arrow(value: &ArrowNullArray, nullable: bool) -> Self
source§impl<T: ArrowPrimitiveType> FromArrowArray<&PrimitiveArray<T>> for Array
impl<T: ArrowPrimitiveType> FromArrowArray<&PrimitiveArray<T>> for Array
fn from_arrow(value: &ArrowPrimitiveArray<T>, nullable: bool) -> Self
source§impl FromArrowArray<&StructArray> for Array
impl FromArrowArray<&StructArray> for Array
fn from_arrow(value: &ArrowStructArray, nullable: bool) -> Self
source§impl FromArrowArray<Arc<dyn Array>> for Array
impl FromArrowArray<Arc<dyn Array>> for Array
fn from_arrow(array: ArrowArrayRef, nullable: bool) -> Self
source§impl FromIterator<Array> for ChunkedArray
impl FromIterator<Array> for ChunkedArray
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
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
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)
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>
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>
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