Expand description
§Utilities - Internal Helper Utilities
A small collection of internal utilities that support validation, parsing, and text conversion elsewhere within the crate.
Functions§
- align64
- Round
byte_countup to the next 64-byte boundary. - confirm_
capacity - Validates that actual capacity matches expected capacity for kernel operations.
- confirm_
equal_ len - Validates that two lengths are equal for binary kernel operations.
- confirm_
mask_ capacity - Checks the mask capacity is large enough Used so we can avoid bounds checks in the hot loop
- create_
aligned_ chunks_ from_ array - Helper function to create aligned chunks from Array to match SuperArray chunk structure
- estimate_
categorical_ cardinality - Estimate cardinality ratio on a sample from a CategoricalArray. Used to quickly figure out the optimal strategy when comparing StringArray and CategoricalArrays.
- estimate_
string_ cardinality - Estimate cardinality ratio on a sample from a StringArray. Used to quickly figure out the optimal strategy when comparing StringArray and CategoricalArrays.
- float_
to_ text_ array - Converts a float array to a String32 TextArray, preserving nulls.
- int_
to_ text_ array - Converts an integer array to a String32 TextArray, preserving nulls.
- is_
simd_ aligned - SIMD Alignment check. Returns true if the slice is properly 64-byte aligned for SIMD operations, false otherwise.
- parse_
datetime_ str - Parses a string into a timestamp in milliseconds since the Unix epoch.
Returns
Some(i64)on success, orNoneif the string could not be parsed. - simd_
mask - Creates a SIMD mask from a bitmask window for vectorised conditional operations.
- validate_
null_ mask_ len - write_
simd_ mask_ bits - Writes a SIMD mask’s packed bits directly into the output bitmask at the given offset.
This is the write-side complement to
simd_mask, avoiding per-laneset_uncheckedcalls.