pub struct ListArray(/* private fields */);
Implementations§
Source§impl ListArray
impl ListArray
pub fn try_new( elements: ArrayData, offsets: ArrayData, validity: Validity, ) -> VortexResult<Self>
pub fn validity(&self) -> Validity
pub fn offset_at(&self, index: usize) -> usize
pub fn elements_at(&self, index: usize) -> VortexResult<ArrayData>
pub fn offsets(&self) -> ArrayData
pub fn elements(&self) -> ArrayData
Trait Implementations§
Source§impl IntoArrayData for ListArray
impl IntoArrayData for ListArray
fn into_array(self) -> ArrayData
Source§impl IntoCanonical for ListArray
impl IntoCanonical for ListArray
fn into_canonical(self) -> VortexResult<Canonical>
fn into_arrow(self) -> VortexResult<ArrayRef>where
Self: Sized,
Source§impl ScalarAtFn<ListArray> for ListEncoding
impl ScalarAtFn<ListArray> for ListEncoding
Source§impl SliceFn<ListArray> for ListEncoding
impl SliceFn<ListArray> for ListEncoding
Source§fn slice(
&self,
array: &ListArray,
start: usize,
stop: usize,
) -> VortexResult<ArrayData>
fn slice( &self, array: &ListArray, start: usize, stop: usize, ) -> VortexResult<ArrayData>
Return a zero-copy slice of an array, between
start
(inclusive) and end
(exclusive).
If start >= stop, returns an empty array of the same type as self
.
Assumes that start or stop are out of bounds, may panic otherwise.Source§impl StatisticsVTable<ListArray> for ListEncoding
impl StatisticsVTable<ListArray> for ListEncoding
Source§fn compute_statistics(
&self,
_array: &ListArray,
_stat: Stat,
) -> VortexResult<StatsSet>
fn compute_statistics( &self, _array: &ListArray, _stat: Stat, ) -> VortexResult<StatsSet>
Compute the requested statistic. Can return additional stats.
Source§impl<'a> TryFrom<&'a ArrayData> for &'a ListArray
impl<'a> TryFrom<&'a ArrayData> for &'a ListArray
Source§type Error = VortexError
type Error = VortexError
The type returned in the event of a conversion error.
Source§fn try_from(data: &'a ArrayData) -> VortexResult<Self>
fn try_from(data: &'a ArrayData) -> VortexResult<Self>
Performs the conversion.
Source§impl TryFrom<ArrayData> for ListArray
impl TryFrom<ArrayData> for ListArray
Source§type Error = VortexError
type Error = VortexError
The type returned in the event of a conversion error.
Source§fn try_from(data: ArrayData) -> VortexResult<Self>
fn try_from(data: ArrayData) -> VortexResult<Self>
Performs the conversion.
Source§impl ValidityVTable<ListArray> for ListEncoding
impl ValidityVTable<ListArray> for ListEncoding
Source§impl VariantsVTable<ListArray> for ListEncoding
impl VariantsVTable<ListArray> for ListEncoding
fn as_list_array<'a>( &self, array: &'a ListArray, ) -> Option<&'a dyn ListArrayTrait>
fn as_null_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn NullArrayTrait>
fn as_bool_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn BoolArrayTrait>
fn as_primitive_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn PrimitiveArrayTrait>
fn as_utf8_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn Utf8ArrayTrait>
fn as_binary_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn BinaryArrayTrait>
fn as_struct_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn StructArrayTrait>
fn as_extension_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn ExtensionArrayTrait>
Source§impl VisitorVTable<ListArray> for ListEncoding
impl VisitorVTable<ListArray> for ListEncoding
fn accept( &self, array: &ListArray, visitor: &mut dyn ArrayVisitor, ) -> VortexResult<()>
impl ArrayTrait for ListArray
impl ListArrayTrait for ListArray
Auto Trait Implementations§
impl !Freeze for ListArray
impl !RefUnwindSafe for ListArray
impl Send for ListArray
impl Sync for ListArray
impl Unpin for ListArray
impl !UnwindSafe for ListArray
Blanket Implementations§
Source§impl<T> ArrayEncodingRef for T
impl<T> ArrayEncodingRef for T
fn encoding(&self) -> &'static dyn EncodingVTable
Source§impl<A> ArrayNBytes for A
impl<A> ArrayNBytes for A
Source§impl<T> ArrayStatistics for T
impl<T> ArrayStatistics for T
fn statistics(&self) -> &dyn Statistics
fn inherit_statistics(&self, parent: &dyn Statistics)
Source§impl<A> ArrayValidity for A
impl<A> ArrayValidity for A
Source§fn is_valid(&self, index: usize) -> bool
fn is_valid(&self, index: usize) -> bool
Return whether the element at the given index is valid (true) or null (false).
Source§fn logical_validity(&self) -> LogicalValidity
fn logical_validity(&self) -> LogicalValidity
Return the logical validity of the array.
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> 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_list(self) -> Result<ListArray, VortexError>
fn into_varbinview(self) -> Result<VarBinViewArray, 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 more