Struct vortex_runend_bool::array::RunEndBoolArray
source · pub struct RunEndBoolArray(/* private fields */);
Implementations§
source§impl RunEndBoolArray
impl RunEndBoolArray
sourcepub fn maybe_from(data: impl AsRef<ArrayData>) -> Option<Self>
pub fn maybe_from(data: impl AsRef<ArrayData>) -> Option<Self>
Optionally downcast an ArrayData
instance to a specific encoding.
Preferred in cases where a backtrace isn’t needed, like when trying multiple encoding to go down different code paths.
Trait Implementations§
source§impl AsRef<ArrayData> for RunEndBoolArray
impl AsRef<ArrayData> for RunEndBoolArray
source§impl Clone for RunEndBoolArray
impl Clone for RunEndBoolArray
source§fn clone(&self) -> RunEndBoolArray
fn clone(&self) -> RunEndBoolArray
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 Debug for RunEndBoolArray
impl Debug for RunEndBoolArray
source§impl IntoArrayData for RunEndBoolArray
impl IntoArrayData for RunEndBoolArray
fn into_array(self) -> ArrayData
source§impl IntoCanonical for RunEndBoolArray
impl IntoCanonical for RunEndBoolArray
fn into_canonical(self) -> VortexResult<Canonical>
fn into_arrow(self) -> Result<Arc<dyn Array>, VortexError>where
Self: Sized,
source§impl InvertFn<RunEndBoolArray> for RunEndBoolEncoding
impl InvertFn<RunEndBoolArray> for RunEndBoolEncoding
source§fn invert(&self, array: &RunEndBoolArray) -> VortexResult<ArrayData>
fn invert(&self, array: &RunEndBoolArray) -> VortexResult<ArrayData>
Logically invert a boolean array. Converts true -> false, false -> true, null -> null.
source§impl ScalarAtFn<RunEndBoolArray> for RunEndBoolEncoding
impl ScalarAtFn<RunEndBoolArray> for RunEndBoolEncoding
fn scalar_at( &self, array: &RunEndBoolArray, index: usize, ) -> VortexResult<Scalar>
source§impl SliceFn<RunEndBoolArray> for RunEndBoolEncoding
impl SliceFn<RunEndBoolArray> for RunEndBoolEncoding
source§fn slice(
&self,
array: &RunEndBoolArray,
start: usize,
stop: usize,
) -> VortexResult<ArrayData>
fn slice( &self, array: &RunEndBoolArray, 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<RunEndBoolArray> for RunEndBoolEncoding
impl StatisticsVTable<RunEndBoolArray> for RunEndBoolEncoding
source§fn compute_statistics(
&self,
array: &RunEndBoolArray,
stat: Stat,
) -> VortexResult<StatsSet>
fn compute_statistics( &self, array: &RunEndBoolArray, stat: Stat, ) -> VortexResult<StatsSet>
Compute the requested statistic. Can return additional stats.
source§impl TakeFn<RunEndBoolArray> for RunEndBoolEncoding
impl TakeFn<RunEndBoolArray> for RunEndBoolEncoding
source§fn take(
&self,
array: &RunEndBoolArray,
indices: &ArrayData,
) -> VortexResult<ArrayData>
fn take( &self, array: &RunEndBoolArray, indices: &ArrayData, ) -> VortexResult<ArrayData>
§unsafe fn take_unchecked(
&self,
array: &Array,
indices: &ArrayData,
) -> Result<ArrayData, VortexError>
unsafe fn take_unchecked( &self, array: &Array, indices: &ArrayData, ) -> Result<ArrayData, VortexError>
source§impl<'a> TryFrom<&'a ArrayData> for &'a RunEndBoolArray
impl<'a> TryFrom<&'a ArrayData> for &'a RunEndBoolArray
source§impl TryFrom<ArrayData> for RunEndBoolArray
impl TryFrom<ArrayData> for RunEndBoolArray
source§impl ValidityVTable<RunEndBoolArray> for RunEndBoolEncoding
impl ValidityVTable<RunEndBoolArray> for RunEndBoolEncoding
fn is_valid(&self, array: &RunEndBoolArray, index: usize) -> bool
fn logical_validity(&self, array: &RunEndBoolArray) -> LogicalValidity
source§impl VariantsVTable<RunEndBoolArray> for RunEndBoolEncoding
impl VariantsVTable<RunEndBoolArray> for RunEndBoolEncoding
fn as_bool_array<'a>( &self, array: &'a RunEndBoolArray, ) -> Option<&'a dyn BoolArrayTrait>
fn as_null_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn NullArrayTrait>
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_list_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn ListArrayTrait>
fn as_extension_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn ExtensionArrayTrait>
source§impl VisitorVTable<RunEndBoolArray> for RunEndBoolEncoding
impl VisitorVTable<RunEndBoolArray> for RunEndBoolEncoding
fn accept( &self, array: &RunEndBoolArray, visitor: &mut dyn ArrayVisitor, ) -> VortexResult<()>
impl ArrayTrait for RunEndBoolArray
impl BoolArrayTrait for RunEndBoolArray
Auto Trait Implementations§
impl !Freeze for RunEndBoolArray
impl !RefUnwindSafe for RunEndBoolArray
impl Send for RunEndBoolArray
impl Sync for RunEndBoolArray
impl Unpin for RunEndBoolArray
impl !UnwindSafe for RunEndBoolArray
Blanket Implementations§
§impl<T> ArrayStatistics for Twhere
T: AsRef<ArrayData>,
impl<T> ArrayStatistics for Twhere
T: AsRef<ArrayData>,
fn statistics(&self) -> &dyn Statistics
fn inherit_statistics(&self, parent: &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
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>
§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