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//! [`Decimal`] reads and writes the `vortex.decimal` wire form. It reads a legacy node, stored at
7//! another width, as the canonical array or as a [`Widen`].
8//!
9//! [`Widen`]: crate::arrays::Widen
10
11mod array;
12pub use array::DecimalArrayExt;
13pub use array::DecimalArraySlotsExt;
14pub use array::DecimalData;
15pub use array::DecimalDataParts;
16pub use array::DecimalSlots;
17
18pub(crate) mod compute;
19pub use compute::rules::DecimalMaskedValidityRule;
20
21mod vtable;
22pub use vtable::Decimal;
23pub use vtable::DecimalArray;
24
25mod utils;
26pub use utils::*;
27
28pub(crate) fn initialize(session: &vortex_session::VortexSession) {
29    vtable::initialize(session);
30    compute::rules::register_parent_rules(session);
31}