Trait vortex_array::variants::VariantsVTable
source · pub trait VariantsVTable<Array> {
// Provided methods
fn as_null_array<'a>(
&self,
_array: &'a Array,
) -> Option<&'a dyn NullArrayTrait> { ... }
fn as_bool_array<'a>(
&self,
_array: &'a Array,
) -> Option<&'a dyn BoolArrayTrait> { ... }
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> { ... }
}
Expand description
An Array encoding must declare which DTypes it can be downcast into.
Provided Methods§
fn as_null_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn NullArrayTrait>
fn as_bool_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn BoolArrayTrait>
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>
Implementors§
impl VariantsVTable<BoolArray> for BoolEncoding
impl VariantsVTable<ChunkedArray> for ChunkedEncoding
Chunked arrays support all DTypes
impl VariantsVTable<ConstantArray> for ConstantEncoding
Constant arrays support all DTypes
impl VariantsVTable<ExtensionArray> for ExtensionEncoding
impl VariantsVTable<ListArray> for ListEncoding
impl VariantsVTable<NullArray> for NullEncoding
impl VariantsVTable<PrimitiveArray> for PrimitiveEncoding
impl VariantsVTable<SparseArray> for SparseEncoding
Sparse arrays support all DTypes