pub struct NullArray(/* private fields */);
Implementations§
Trait Implementations§
Source§impl ArrayVariants for NullArray
impl ArrayVariants for NullArray
fn as_null_array(&self) -> Option<&dyn NullArrayTrait>
fn as_null_array_unchecked(&self) -> &dyn NullArrayTrait
fn as_bool_array(&self) -> Option<&dyn BoolArrayTrait>
fn as_bool_array_unchecked(&self) -> &dyn BoolArrayTrait
fn as_primitive_array(&self) -> Option<&dyn PrimitiveArrayTrait>
fn as_primitive_array_unchecked(&self) -> &dyn PrimitiveArrayTrait
fn as_utf8_array(&self) -> Option<&dyn Utf8ArrayTrait>
fn as_utf8_array_unchecked(&self) -> &dyn Utf8ArrayTrait
fn as_binary_array(&self) -> Option<&dyn BinaryArrayTrait>
fn as_binary_array_unchecked(&self) -> &dyn BinaryArrayTrait
fn as_struct_array(&self) -> Option<&dyn StructArrayTrait>
fn as_struct_array_unchecked(&self) -> &dyn StructArrayTrait
fn as_list_array(&self) -> Option<&dyn ListArrayTrait>
fn as_list_array_unchecked(&self) -> &dyn ListArrayTrait
fn as_extension_array(&self) -> Option<&dyn ExtensionArrayTrait>
fn as_extension_array_unchecked(&self) -> &dyn ExtensionArrayTrait
Source§impl IntoArrayData for NullArray
impl IntoArrayData for NullArray
fn into_array(self) -> ArrayData
Source§impl IntoCanonical for NullArray
impl IntoCanonical for NullArray
fn into_canonical(self) -> VortexResult<Canonical>
Source§impl ScalarAtFn<NullArray> for NullEncoding
impl ScalarAtFn<NullArray> for NullEncoding
Source§impl SliceFn<NullArray> for NullEncoding
impl SliceFn<NullArray> for NullEncoding
Source§fn slice(
&self,
_array: &NullArray,
start: usize,
stop: usize,
) -> VortexResult<ArrayData>
fn slice( &self, _array: &NullArray, 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<NullArray> for NullEncoding
impl StatisticsVTable<NullArray> for NullEncoding
Source§fn compute_statistics(
&self,
array: &NullArray,
stat: Stat,
) -> VortexResult<StatsSet>
fn compute_statistics( &self, array: &NullArray, stat: Stat, ) -> VortexResult<StatsSet>
Compute the requested statistic. Can return additional stats.
Source§impl TakeFn<NullArray> for NullEncoding
impl TakeFn<NullArray> for NullEncoding
fn take( &self, array: &NullArray, indices: &ArrayData, options: TakeOptions, ) -> VortexResult<ArrayData>
Source§impl<'a> TryFrom<&'a ArrayData> for &'a NullArray
impl<'a> TryFrom<&'a ArrayData> for &'a NullArray
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 NullArray
impl TryFrom<ArrayData> for NullArray
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<NullArray> for NullEncoding
impl ValidityVTable<NullArray> for NullEncoding
Source§impl VisitorVTable<NullArray> for NullEncoding
impl VisitorVTable<NullArray> for NullEncoding
fn accept( &self, _array: &NullArray, visitor: &mut dyn ArrayVisitor, ) -> VortexResult<()>
impl ArrayTrait for NullArray
impl NullArrayTrait for NullArray
Auto Trait Implementations§
impl !Freeze for NullArray
impl !RefUnwindSafe for NullArray
impl Send for NullArray
impl Sync for NullArray
impl Unpin for NullArray
impl !UnwindSafe for NullArray
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
fn is_valid(&self, index: usize) -> bool
fn logical_validity(&self) -> LogicalValidity
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_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