Struct vortex_array::encoding::opaque::OpaqueEncoding

source ·
pub struct OpaqueEncoding(pub u16);
Expand description

An encoding of an array that we cannot interpret.

Vortex allows for pluggable encodings. This can lead to issues when one process produces a file using a custom encoding, and then another process without knowledge of the encoding attempts to read it.

OpaqueEncoding allows deserializing these arrays. Many common operations will fail, but it allows deserialization and introspection in a type-erased manner on the children and metadata.

We hold the original 16-bit encoding ID for producing helpful error messages.

Tuple Fields§

§0: u16

Trait Implementations§

source§

impl Clone for OpaqueEncoding

source§

fn clone(&self) -> OpaqueEncoding

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl ComputeVTable for OpaqueEncoding

source§

fn binary_boolean_fn(&self) -> Option<&dyn BinaryBooleanFn<ArrayData>>

Implementation of binary boolean logic operations. Read more
source§

fn binary_numeric_fn(&self) -> Option<&dyn BinaryNumericFn<ArrayData>>

Implementation of binary numeric operations. Read more
source§

fn cast_fn(&self) -> Option<&dyn CastFn<ArrayData>>

Implemented for arrays that can be casted to different types. Implemented for arrays that can be casted to different types. Read more
source§

fn compare_fn(&self) -> Option<&dyn CompareFn<ArrayData>>

Binary operator implementation for arrays against other arrays. Read more
source§

fn fill_forward_fn(&self) -> Option<&dyn FillForwardFn<ArrayData>>

Array function that returns new arrays a non-null value is repeated across runs of nulls. Read more
source§

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

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

fn filter_fn(&self) -> Option<&dyn FilterFn<ArrayData>>

Filter an array with a given mask. Read more
source§

fn invert_fn(&self) -> Option<&dyn InvertFn<ArrayData>>

Invert a boolean array. Converts true -> false, false -> true, null -> null. Read more
source§

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

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

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

Single item indexing on Vortex arrays. Read more
source§

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

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

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

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

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

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

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

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

impl Debug for OpaqueEncoding

source§

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

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

impl EncodingVTable for OpaqueEncoding

source§

fn id(&self) -> EncodingId

source§

fn as_any(&self) -> &dyn Any

source§

impl IntoCanonicalVTable for OpaqueEncoding

source§

fn into_canonical(&self, _array: ArrayData) -> VortexResult<Canonical>

source§

fn into_arrow(&self, _array: ArrayData) -> VortexResult<ArrayRef>

source§

impl MetadataVTable for OpaqueEncoding

source§

fn load_metadata( &self, _metadata: Option<&[u8]>, ) -> VortexResult<Arc<dyn ArrayMetadata>>

source§

impl StatisticsVTable<ArrayData> for OpaqueEncoding

source§

fn compute_statistics( &self, _array: &Array, _stat: Stat, ) -> VortexResult<StatsSet>

Compute the requested statistic. Can return additional stats.
source§

impl ValidityVTable<ArrayData> for OpaqueEncoding

source§

fn is_valid(&self, _array: &ArrayData, _index: usize) -> bool

source§

fn logical_validity(&self, _array: &ArrayData) -> LogicalValidity

source§

impl VariantsVTable<ArrayData> for OpaqueEncoding

source§

fn as_null_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn NullArrayTrait>

source§

fn as_bool_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn BoolArrayTrait>

source§

fn as_primitive_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn PrimitiveArrayTrait>

source§

fn as_utf8_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn Utf8ArrayTrait>

source§

fn as_binary_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn BinaryArrayTrait>

source§

fn as_struct_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn StructArrayTrait>

source§

fn as_list_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn ListArrayTrait>

source§

fn as_extension_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn ExtensionArrayTrait>

source§

impl VisitorVTable<ArrayData> for OpaqueEncoding

source§

fn accept( &self, _array: &ArrayData, _visitor: &mut dyn ArrayVisitor, ) -> VortexResult<()>

source§

impl Copy for OpaqueEncoding

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> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

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

§

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

§

impl<T> MaybeSendSync for T

§

impl<T> Ungil for T
where T: Send,