vortex_fastlanes/delta/vtable/
canonical.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright the Vortex contributors
3
4use vortex_array::Canonical;
5use vortex_array::vtable::CanonicalVTable;
6
7use super::DeltaVTable;
8use crate::DeltaArray;
9use crate::delta::array::delta_decompress::delta_decompress;
10
11impl CanonicalVTable<DeltaVTable> for DeltaVTable {
12    fn canonicalize(array: &DeltaArray) -> Canonical {
13        Canonical::Primitive(delta_decompress(array))
14    }
15}