vortex_array/arrays/chunked/
mod.rs

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