pub fn dict_encode_with_constraints(
array: &ArrayRef,
constraints: &DictConstraints,
ctx: &mut ExecutionCtx,
) -> VortexResult<DictArray>Expand description
Encode an array as a DictArray subject to the given constraints.
The codes use the narrowest unsigned integer type that can address the dictionary, so callers have nothing left to narrow.
Vortex encoders must always produce unsigned integer codes; signed codes are only accepted for external compatibility.