vortex_array/arrays/list/vtable/
mod.rs1use crate::arrays::ListArray;
5use crate::vtable::{NotSupported, VTable, ValidityVTableFromValidityHelper};
6use crate::{EncodingId, EncodingRef, vtable};
7
8mod array;
9mod canonical;
10mod operations;
11mod serde;
12mod validity;
13mod visitor;
14
15vtable!(List);
16
17impl VTable for ListVTable {
18 type Array = ListArray;
19 type Encoding = ListEncoding;
20
21 type ArrayVTable = Self;
22 type CanonicalVTable = Self;
23 type OperationsVTable = Self;
24 type ValidityVTable = ValidityVTableFromValidityHelper;
25 type VisitorVTable = Self;
26 type ComputeVTable = NotSupported;
27 type EncodeVTable = NotSupported;
28 type PipelineVTable = NotSupported;
29 type SerdeVTable = Self;
30
31 fn id(_encoding: &Self::Encoding) -> EncodingId {
32 EncodingId::new_ref("vortex.list")
33 }
34
35 fn encoding(_array: &Self::Array) -> EncodingRef {
36 EncodingRef::new_ref(ListEncoding.as_ref())
37 }
38}
39
40#[derive(Clone, Debug)]
41pub struct ListEncoding;