vortex_array/arrays/varbin/vtable/
mod.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright the Vortex contributors
3
4use crate::arrays::varbin::VarBinArray;
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!(VarBin);
16
17impl VTable for VarBinVTable {
18    type Array = VarBinArray;
19    type Encoding = VarBinEncoding;
20    type ArrayVTable = Self;
21    type CanonicalVTable = Self;
22    type OperationsVTable = Self;
23    type ValidityVTable = ValidityVTableFromValidityHelper;
24    type VisitorVTable = Self;
25    type ComputeVTable = NotSupported;
26    type EncodeVTable = NotSupported;
27    type PipelineVTable = NotSupported;
28    type SerdeVTable = Self;
29
30    fn id(_encoding: &Self::Encoding) -> EncodingId {
31        EncodingId::new_ref("vortex.varbin")
32    }
33
34    fn encoding(_array: &Self::Array) -> EncodingRef {
35        EncodingRef::new_ref(VarBinEncoding.as_ref())
36    }
37}
38
39#[derive(Clone, Debug)]
40pub struct VarBinEncoding;