Struct vortex_array::array::ConstantArray
source · pub struct ConstantArray(/* private fields */);
Implementations§
source§impl ConstantArray
impl ConstantArray
Trait Implementations§
source§impl<T> Accessor<T> for ConstantArray
impl<T> Accessor<T> for ConstantArray
source§impl AsRef<ArrayData> for ConstantArray
impl AsRef<ArrayData> for ConstantArray
source§impl BinaryBooleanFn<ConstantArray> for ConstantEncoding
impl BinaryBooleanFn<ConstantArray> for ConstantEncoding
fn binary_boolean( &self, lhs: &ConstantArray, rhs: &ArrayData, op: BinaryOperator, ) -> VortexResult<Option<ArrayData>>
source§impl BinaryNumericFn<ConstantArray> for ConstantEncoding
impl BinaryNumericFn<ConstantArray> for ConstantEncoding
fn binary_numeric( &self, array: &ConstantArray, rhs: &ArrayData, op: BinaryNumericOperator, ) -> VortexResult<Option<ArrayData>>
source§impl Clone for ConstantArray
impl Clone for ConstantArray
source§fn clone(&self) -> ConstantArray
fn clone(&self) -> ConstantArray
Returns a copy 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 CompareFn<ConstantArray> for ConstantEncoding
impl CompareFn<ConstantArray> for ConstantEncoding
source§impl Debug for ConstantArray
impl Debug for ConstantArray
source§impl ExtensionArrayTrait for ConstantArray
impl ExtensionArrayTrait for ConstantArray
source§impl FilterFn<ConstantArray> for ConstantEncoding
impl FilterFn<ConstantArray> for ConstantEncoding
source§fn filter(
&self,
array: &ConstantArray,
mask: FilterMask,
) -> VortexResult<ArrayData>
fn filter( &self, array: &ConstantArray, mask: FilterMask, ) -> VortexResult<ArrayData>
Filter an array by the provided predicate.
source§impl IntoArrayData for ConstantArray
impl IntoArrayData for ConstantArray
fn into_array(self) -> ArrayData
source§impl IntoCanonical for ConstantArray
impl IntoCanonical for ConstantArray
fn into_canonical(self) -> VortexResult<Canonical>
fn into_arrow(self) -> VortexResult<ArrayRef>where
Self: Sized,
source§impl InvertFn<ConstantArray> for ConstantEncoding
impl InvertFn<ConstantArray> for ConstantEncoding
source§fn invert(&self, array: &ConstantArray) -> VortexResult<ArrayData>
fn invert(&self, array: &ConstantArray) -> VortexResult<ArrayData>
Logically invert a boolean array. Converts true -> false, false -> true, null -> null.
source§impl PrimitiveArrayTrait for ConstantArray
impl PrimitiveArrayTrait for ConstantArray
source§impl ScalarAtFn<ConstantArray> for ConstantEncoding
impl ScalarAtFn<ConstantArray> for ConstantEncoding
fn scalar_at( &self, array: &ConstantArray, _index: usize, ) -> VortexResult<Scalar>
source§impl SearchSortedFn<ConstantArray> for ConstantEncoding
impl SearchSortedFn<ConstantArray> for ConstantEncoding
fn search_sorted( &self, array: &ConstantArray, value: &Scalar, side: SearchSortedSide, ) -> VortexResult<SearchResult>
source§fn search_sorted_many(
&self,
array: &Array,
values: &[Scalar],
side: SearchSortedSide,
) -> VortexResult<Vec<SearchResult>>
fn search_sorted_many( &self, array: &Array, values: &[Scalar], side: SearchSortedSide, ) -> VortexResult<Vec<SearchResult>>
Bulk search for many values.
source§impl SliceFn<ConstantArray> for ConstantEncoding
impl SliceFn<ConstantArray> for ConstantEncoding
source§fn slice(
&self,
array: &ConstantArray,
start: usize,
stop: usize,
) -> VortexResult<ArrayData>
fn slice( &self, array: &ConstantArray, 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<ConstantArray> for ConstantEncoding
impl StatisticsVTable<ConstantArray> for ConstantEncoding
source§fn compute_statistics(
&self,
array: &ConstantArray,
_stat: Stat,
) -> VortexResult<StatsSet>
fn compute_statistics( &self, array: &ConstantArray, _stat: Stat, ) -> VortexResult<StatsSet>
Compute the requested statistic. Can return additional stats.
source§impl StructArrayTrait for ConstantArray
impl StructArrayTrait for ConstantArray
source§impl TakeFn<ConstantArray> for ConstantEncoding
impl TakeFn<ConstantArray> for ConstantEncoding
source§impl<'a> TryFrom<&'a ArrayData> for &'a ConstantArray
impl<'a> TryFrom<&'a ArrayData> for &'a ConstantArray
source§impl TryFrom<ArrayData> for ConstantArray
impl TryFrom<ArrayData> for ConstantArray
source§impl ValidityVTable<ConstantArray> for ConstantEncoding
impl ValidityVTable<ConstantArray> for ConstantEncoding
fn is_valid(&self, array: &ConstantArray, _index: usize) -> bool
fn logical_validity(&self, array: &ConstantArray) -> LogicalValidity
source§impl VariantsVTable<ConstantArray> for ConstantEncoding
impl VariantsVTable<ConstantArray> for ConstantEncoding
Constant arrays support all DTypes
fn as_null_array<'a>( &self, array: &'a ConstantArray, ) -> Option<&'a dyn NullArrayTrait>
fn as_bool_array<'a>( &self, array: &'a ConstantArray, ) -> Option<&'a dyn BoolArrayTrait>
fn as_primitive_array<'a>( &self, array: &'a ConstantArray, ) -> Option<&'a dyn PrimitiveArrayTrait>
fn as_utf8_array<'a>( &self, array: &'a ConstantArray, ) -> Option<&'a dyn Utf8ArrayTrait>
fn as_binary_array<'a>( &self, array: &'a ConstantArray, ) -> Option<&'a dyn BinaryArrayTrait>
fn as_struct_array<'a>( &self, array: &'a ConstantArray, ) -> Option<&'a dyn StructArrayTrait>
fn as_list_array<'a>( &self, array: &'a ConstantArray, ) -> Option<&'a dyn ListArrayTrait>
fn as_extension_array<'a>( &self, array: &'a ConstantArray, ) -> Option<&'a dyn ExtensionArrayTrait>
source§impl VisitorVTable<ConstantArray> for ConstantEncoding
impl VisitorVTable<ConstantArray> for ConstantEncoding
fn accept( &self, _array: &ConstantArray, _visitor: &mut dyn ArrayVisitor, ) -> VortexResult<()>
impl ArrayTrait for ConstantArray
impl BinaryArrayTrait for ConstantArray
impl BoolArrayTrait for ConstantArray
impl ListArrayTrait for ConstantArray
impl NullArrayTrait for ConstantArray
impl Utf8ArrayTrait for ConstantArray
Auto Trait Implementations§
impl !Freeze for ConstantArray
impl !RefUnwindSafe for ConstantArray
impl Send for ConstantArray
impl Sync for ConstantArray
impl Unpin for ConstantArray
impl !UnwindSafe for ConstantArray
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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