Skip to main content

Module decimal

Module decimal 

Source
Expand description

Decimal arrays whose logical precision determines their canonical integer width.

DecimalPlugin reads and writes the vortex.decimal wire form in place of the Decimal vtable. It reads a legacy node, stored at another width, as the canonical array or as a Widen.

Re-exports§

pub use crate::aggregate_fn::fns::min_max::valid_range;

Structs§

Decimal
The vtable of DecimalArray.
DecimalData
A decimal array that stores fixed-precision decimal numbers with configurable scale.
DecimalDataParts
Decimal storage and validity, as returned by DecimalArray::into_data_parts.
DecimalMaskedValidityRule
Rule to push down validity masking from MaskedArray parent into DecimalArray child.
DecimalPlugin
Writes a DecimalArray as a vortex.decimal node, and reads every such node as the canonical decimal array or a decimal Widen.
DecimalSlots

Traits§

DecimalArrayExt
DecimalArraySlotsExt
Typed array accessors for Decimal.

Functions§

check_precision
Checks that every valid value fits the precision of decimal_dtype.
converted_buffer
Return the array’s unscaled values converted to exactly W, whatever the array’s storage type. Zero-copy when the array is already stored at W.
copy_to_canonical_width
Copies unscaled decimal values into a new buffer at the canonical width of target.
narrowed_decimal
Attempt to narrow the decimal array to any smaller supported type.

Type Aliases§

DecimalArray
A Decimal-encoded Vortex array.