Skip to main content

Module decimal

Module decimal 

Source
Expand description

Decimal arrays whose logical precision determines their canonical integer width.

Decimal reads and writes the vortex.decimal wire form. 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
The decimal dtype and values buffer of a DecimalArray.
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.
DecimalSlots

Traits§

DecimalArrayExt
DecimalArraySlotsExt
Typed slot accessors for Decimal arrays.

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.

Type Aliases§

DecimalArray
A Decimal-encoded Vortex array.