pub struct TypedValueArray { /* private fields */ }
Expand description
Represents an Arrow array with a TypedValueEncoding.
Implementations§
Source§impl TypedValueArray
impl TypedValueArray
Sourcepub fn parts_as_ref(&self) -> TypedValueArrayParts<'_>
pub fn parts_as_ref(&self) -> TypedValueArrayParts<'_>
Returns a reference to all the child arrays contained in this array. It is expected to call this method once and work on the resulting TypedValueArrayParts.
Using this has multiple benefits:
- Can reduce runtime checks for accessing and downcasting child arrays
- A bit more static guarantees, as the struct will change if a child array is removed
Trait Implementations§
Source§impl Clone for TypedValueArray
impl Clone for TypedValueArray
Source§fn clone(&self) -> TypedValueArray
fn clone(&self) -> TypedValueArray
Returns a duplicate 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 EncodingArray for TypedValueArray
impl EncodingArray for TypedValueArray
Source§type Encoding = TypedValueEncoding
type Encoding = TypedValueEncoding
The encoding used by this array.
Source§fn encoding(&self) -> &<TypedValueArray as EncodingArray>::Encoding
fn encoding(&self) -> &<TypedValueArray as EncodingArray>::Encoding
Obtains the encoding instance for this array.
Source§fn into_array(self) -> Arc<dyn Array>
fn into_array(self) -> Arc<dyn Array>
Consumes
self
and returns the inner array.Source§fn try_as_scalar(
&self,
index: usize,
) -> Result<<Self::Encoding as TermEncoding>::Scalar, DataFusionError>
fn try_as_scalar( &self, index: usize, ) -> Result<<Self::Encoding as TermEncoding>::Scalar, DataFusionError>
Extracts a scalar from this array at
index
. Read moreAuto Trait Implementations§
impl Freeze for TypedValueArray
impl !RefUnwindSafe for TypedValueArray
impl Send for TypedValueArray
impl Sync for TypedValueArray
impl Unpin for TypedValueArray
impl !UnwindSafe for TypedValueArray
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