Skip to main content

vortex_array/arrays/decimal/
mod.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright the Vortex contributors
3
4//! Decimal arrays whose logical precision determines their canonical integer width.
5//!
6//! [`DecimalPlugin`] reads and writes the `vortex.decimal` wire form in place of the [`Decimal`]
7//! vtable. It reads a legacy node, stored at another width, as the canonical array or as a
8//! [`Widen`].
9//!
10//! [`Widen`]: crate::arrays::Widen
11
12mod array;
13pub use array::DecimalArrayExt;
14pub use array::DecimalArraySlotsExt;
15pub use array::DecimalData;
16pub use array::DecimalDataParts;
17pub use array::DecimalSlots;
18
19pub(crate) mod compute;
20pub use compute::rules::DecimalMaskedValidityRule;
21
22mod vtable;
23pub use vtable::Decimal;
24pub use vtable::DecimalArray;
25pub use vtable::DecimalPlugin;
26
27mod utils;
28pub use utils::*;
29
30pub(crate) fn initialize(session: &vortex_session::VortexSession) {
31    vtable::initialize(session);
32}