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