Struct VarBinViewEncoding

Source
pub struct VarBinViewEncoding;

Trait Implementations§

Source§

impl CastKernel for VarBinViewEncoding

Source§

fn cast(&self, array: &VarBinViewArray, dtype: &DType) -> VortexResult<ArrayRef>

Source§

impl ComputeVTable for VarBinViewEncoding

Source§

fn is_constant_fn(&self) -> Option<&dyn IsConstantFn<&dyn Array>>

Checks if an array is constant. Read more
Source§

fn is_sorted_fn(&self) -> Option<&dyn IsSortedFn<&dyn Array>>

Source§

fn min_max_fn(&self) -> Option<&dyn MinMaxFn<&dyn Array>>

Compute the min, max of an array. Read more
Source§

fn scalar_at_fn(&self) -> Option<&dyn ScalarAtFn<&dyn Array>>

Single item indexing on Vortex arrays. Read more
Source§

fn slice_fn(&self) -> Option<&dyn SliceFn<&dyn Array>>

Perform zero-copy slicing of an array. Read more
Source§

fn take_fn(&self) -> Option<&dyn TakeFn<&dyn Array>>

Take a set of indices from an array. This often forces allocations and decoding of the receiver. Read more
Source§

fn to_arrow_fn(&self) -> Option<&dyn ToArrowFn<&dyn Array>>

Convert the array to an Arrow array of the given type. Read more
Source§

fn uncompressed_size_fn(&self) -> Option<&dyn UncompressedSizeFn<&dyn Array>>

Approximates the uncompressed size of the array. Read more
Source§

fn fill_null_fn(&self) -> Option<&dyn FillNullFn<&dyn Array>>

Fill null values with given desired value. Resulting array is NonNullable Read more
Source§

fn like_fn(&self) -> Option<&dyn LikeFn<&dyn Array>>

Perform a SQL LIKE operation on two arrays. Read more
Source§

fn optimize_fn(&self) -> Option<&dyn OptimizeFn<&dyn Array>>

Try and optimize the layout of an array. Read more
Source§

fn search_sorted_fn(&self) -> Option<&dyn SearchSortedFn<&dyn Array>>

Perform a search over an ordered array. Read more
Source§

fn search_sorted_usize_fn(&self) -> Option<&dyn SearchSortedUsizeFn<&dyn Array>>

Perform a search over an ordered array. Read more
Source§

fn take_from_fn(&self) -> Option<&dyn TakeFromFn<&dyn Array>>

Source§

impl Debug for VarBinViewEncoding

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Encoding for VarBinViewEncoding

Source§

impl EncodingVTable for VarBinViewEncoding

Source§

fn id(&self) -> EncodingId

Return the ID for this encoding implementation.
Source§

fn decode( &self, parts: &ArrayParts, ctx: &ArrayContext, dtype: DType, len: usize, ) -> VortexResult<ArrayRef>

Source§

fn encode( &self, input: &Canonical, _like: Option<&dyn Array>, ) -> VortexResult<Option<ArrayRef>>

Encode the canonical array into this encoding implementation. Read more
Source§

impl IsConstantFn<&VarBinViewArray> for VarBinViewEncoding

Source§

fn is_constant( &self, array: &VarBinViewArray, _opts: &IsConstantOpts, ) -> VortexResult<Option<bool>>

Preconditions Read more
Source§

impl IsSortedFn<&VarBinViewArray> for VarBinViewEncoding

Source§

impl MaskKernel for VarBinViewEncoding

Source§

fn mask(&self, array: &VarBinViewArray, mask: &Mask) -> VortexResult<ArrayRef>

Replace masked values with null in array.
Source§

impl MinMaxFn<&VarBinViewArray> for VarBinViewEncoding

Source§

impl OptimizeFn<&VarBinViewArray> for VarBinViewEncoding

Source§

impl ScalarAtFn<&VarBinViewArray> for VarBinViewEncoding

Source§

fn scalar_at( &self, array: &VarBinViewArray, index: usize, ) -> VortexResult<Scalar>

Source§

impl SliceFn<&VarBinViewArray> for VarBinViewEncoding

Source§

fn slice( &self, array: &VarBinViewArray, start: usize, stop: usize, ) -> VortexResult<ArrayRef>

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 TakeFn<&VarBinViewArray> for VarBinViewEncoding

Take involves creating a new array that references the old array, just with the given set of views.

Source§

fn take( &self, array: &VarBinViewArray, indices: &dyn Array, ) -> VortexResult<ArrayRef>

Create a new array by taking the values from the array at the given indices. Read more
Source§

fn take_into( &self, array: &VarBinViewArray, indices: &dyn Array, builder: &mut dyn ArrayBuilder, ) -> VortexResult<()>

Has the same semantics as Self::take but materializes the result into the provided builder.
Source§

impl ToArrowFn<&VarBinViewArray> for VarBinViewEncoding

Source§

fn to_arrow( &self, array: &VarBinViewArray, data_type: &DataType, ) -> VortexResult<Option<ArrayRef>>

Convert the array to an Arrow array of the given type. Read more
Source§

fn preferred_arrow_data_type(&self, _array: A) -> VortexResult<Option<DataType>>

Return the preferred Arrow DataType of the encoding, or None of the canonical DataType for the array’s Vortex vortex_dtype::DType should be used.
Source§

impl UncompressedSizeFn<&VarBinViewArray> for VarBinViewEncoding

Source§

fn uncompressed_size(&self, array: &VarBinViewArray) -> VortexResult<usize>

Compute the approximated uncompressed size of the array, in bytes.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<E> IsConstantFn<&dyn Array> for E
where E: Encoding + for<'a> IsConstantFn<&'a <E as Encoding>::Array>,

Source§

fn is_constant( &self, array: &dyn Array, opts: &IsConstantOpts, ) -> Result<Option<bool>, VortexError>

Preconditions Read more
Source§

impl<E> IsSortedFn<&dyn Array> for E
where E: Encoding + for<'a> IsSortedFn<&'a <E as Encoding>::Array>,

Source§

fn is_sorted(&self, array: &dyn Array) -> Result<bool, VortexError>

Preconditions Read more
Source§

fn is_strict_sorted(&self, array: &dyn Array) -> Result<bool, VortexError>

Source§

impl<E> MinMaxFn<&dyn Array> for E
where E: Encoding + for<'a> MinMaxFn<&'a <E as Encoding>::Array>,

Source§

fn min_max( &self, array: &dyn Array, ) -> Result<Option<MinMaxResult>, VortexError>

Source§

impl<E> OptimizeFn<&dyn Array> for E
where E: Encoding + for<'a> OptimizeFn<&'a <E as Encoding>::Array>,

Source§

fn optimize(&self, array: &dyn Array) -> Result<Arc<dyn Array>, VortexError>

Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The metadata type for pointers and references to this type.
Source§

impl<E> ScalarAtFn<&dyn Array> for E
where E: Encoding + for<'a> ScalarAtFn<&'a <E as Encoding>::Array>,

Source§

fn scalar_at( &self, array: &dyn Array, index: usize, ) -> Result<Scalar, VortexError>

Source§

impl<E> SliceFn<&dyn Array> for E
where E: Encoding + for<'a> SliceFn<&'a <E as Encoding>::Array>,

Source§

fn slice( &self, array: &dyn Array, start: usize, stop: usize, ) -> Result<Arc<dyn Array>, VortexError>

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<E> TakeFn<&dyn Array> for E
where E: Encoding + for<'a> TakeFn<&'a <E as Encoding>::Array>,

Source§

fn take( &self, array: &dyn Array, indices: &dyn Array, ) -> Result<Arc<dyn Array>, VortexError>

Create a new array by taking the values from the array at the given indices. Read more
Source§

fn take_into( &self, array: &dyn Array, indices: &dyn Array, builder: &mut dyn ArrayBuilder, ) -> Result<(), VortexError>

Has the same semantics as Self::take but materializes the result into the provided builder.
Source§

impl<E> ToArrowFn<&dyn Array> for E
where E: Encoding + for<'a> ToArrowFn<&'a <E as Encoding>::Array>,

Source§

fn preferred_arrow_data_type( &self, array: &dyn Array, ) -> Result<Option<DataType>, VortexError>

Return the preferred Arrow DataType of the encoding, or None of the canonical DataType for the array’s Vortex vortex_dtype::DType should be used.
Source§

fn to_arrow( &self, array: &dyn Array, data_type: &DataType, ) -> Result<Option<Arc<dyn Array>>, VortexError>

Convert the array to an Arrow array of the given type. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<E> UncompressedSizeFn<&dyn Array> for E
where E: Encoding + for<'a> UncompressedSizeFn<&'a <E as Encoding>::Array>,

Source§

fn uncompressed_size(&self, array: &dyn Array) -> Result<usize, VortexError>

Compute the approximated uncompressed size of the array, in bytes.
Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T