use crate::arrays::ChunkedArray;
use crate::vtable::{NotSupported, VTable};
use crate::{EncodingId, EncodingRef, vtable};
mod array;
mod canonical;
mod compute;
mod operations;
mod serde;
mod validity;
mod visitor;
vtable!(Chunked);
impl VTable for ChunkedVTable {
type Array = ChunkedArray;
type Encoding = ChunkedEncoding;
type ArrayVTable = Self;
type CanonicalVTable = Self;
type OperationsVTable = Self;
type ValidityVTable = Self;
type VisitorVTable = Self;
type ComputeVTable = Self;
type EncodeVTable = NotSupported;
type PipelineVTable = NotSupported;
type SerdeVTable = Self;
fn id(_encoding: &Self::Encoding) -> EncodingId {
EncodingId::new_ref("vortex.chunked")
}
fn encoding(_array: &Self::Array) -> EncodingRef {
EncodingRef::new_ref(ChunkedEncoding.as_ref())
}
}
#[derive(Clone, Debug)]
pub struct ChunkedEncoding;