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
impl Clone for OpaqueEncoding
Source§fn clone(&self) -> OpaqueEncoding
fn clone(&self) -> OpaqueEncoding
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 ComputeVTable for OpaqueEncoding
impl ComputeVTable for OpaqueEncoding
Source§fn binary_boolean_fn(
&self,
_lhs: &ArrayData,
_rhs: &ArrayData,
) -> Option<&dyn BinaryBooleanFn<ArrayData>>
fn binary_boolean_fn( &self, _lhs: &ArrayData, _rhs: &ArrayData, ) -> Option<&dyn BinaryBooleanFn<ArrayData>>
Implementation of binary boolean logic operations. Read more
Source§fn cast_fn(&self) -> Option<&dyn CastFn<ArrayData>>
fn cast_fn(&self) -> Option<&dyn CastFn<ArrayData>>
Implemented for arrays that can be casted to different types. Read more
Source§fn compare_fn(&self) -> Option<&dyn CompareFn<ArrayData>>
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>>
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 filter_fn(&self) -> Option<&dyn FilterFn<ArrayData>>
fn filter_fn(&self) -> Option<&dyn FilterFn<ArrayData>>
Filter an array with a given mask. Read more
Source§fn scalar_at_fn(&self) -> Option<&dyn ScalarAtFn<ArrayData>>
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>>
fn search_sorted_fn(&self) -> Option<&dyn SearchSortedFn<ArrayData>>
Perform a search over an ordered array. Read more
Source§fn slice_fn(&self) -> Option<&dyn SliceFn<ArrayData>>
fn slice_fn(&self) -> Option<&dyn SliceFn<ArrayData>>
Perform zero-copy slicing of an array. Read more
Source§fn subtract_scalar_fn(&self) -> Option<&dyn SubtractScalarFn<ArrayData>>
fn subtract_scalar_fn(&self) -> Option<&dyn SubtractScalarFn<ArrayData>>
Broadcast subtraction of scalar from Vortex array. Read more
Source§impl Debug for OpaqueEncoding
impl Debug for OpaqueEncoding
Source§impl EncodingVTable for OpaqueEncoding
impl EncodingVTable for OpaqueEncoding
fn id(&self) -> EncodingId
fn as_any(&self) -> &dyn Any
Source§fn with_dyn(
&self,
_array: &ArrayData,
_f: &mut dyn for<'b> FnMut(&'b (dyn ArrayTrait + 'b)) -> VortexResult<()>,
) -> VortexResult<()>
fn with_dyn( &self, _array: &ArrayData, _f: &mut dyn for<'b> FnMut(&'b (dyn ArrayTrait + 'b)) -> VortexResult<()>, ) -> VortexResult<()>
Unwrap the provided array into an implementation of ArrayTrait
Source§impl IntoCanonicalVTable for OpaqueEncoding
impl IntoCanonicalVTable for OpaqueEncoding
fn into_canonical(&self, _array: ArrayData) -> VortexResult<Canonical>
Source§impl MetadataVTable for OpaqueEncoding
impl MetadataVTable for OpaqueEncoding
fn load_metadata( &self, _metadata: Option<&[u8]>, ) -> VortexResult<Arc<dyn ArrayMetadata>>
Source§impl StatisticsVTable<ArrayData> for OpaqueEncoding
impl StatisticsVTable<ArrayData> for OpaqueEncoding
Source§fn compute_statistics(
&self,
_array: &Array,
_stat: Stat,
) -> VortexResult<StatsSet>
fn compute_statistics( &self, _array: &Array, _stat: Stat, ) -> VortexResult<StatsSet>
Compute the requested statistic. Can return additional stats.
Source§impl ValidityVTable<ArrayData> for OpaqueEncoding
impl ValidityVTable<ArrayData> for OpaqueEncoding
Source§impl VisitorVTable<ArrayData> for OpaqueEncoding
impl VisitorVTable<ArrayData> for OpaqueEncoding
fn accept( &self, _array: &ArrayData, _visitor: &mut dyn ArrayVisitor, ) -> VortexResult<()>
impl Copy for OpaqueEncoding
Auto Trait Implementations§
impl Freeze for OpaqueEncoding
impl RefUnwindSafe for OpaqueEncoding
impl Send for OpaqueEncoding
impl Sync for OpaqueEncoding
impl Unpin for OpaqueEncoding
impl UnwindSafe for OpaqueEncoding
Blanket Implementations§
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> 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