Skip to main content

pack_values_from_offsets_impl

Function pack_values_from_offsets_impl 

Source
fn pack_values_from_offsets_impl<K: ArrowDictionaryKeyType, V: OffsetSizeTrait>(
    offset_buffer: &OffsetBuffer<V>,
    hashes: &[u64],
    null_buffer: Option<Buffer>,
    key_type: &DataType,
    value_type: &DataType,
) -> Result<ArrayRef>
Expand description

Builds a [DictionaryArray] directly from a flat OffsetBuffer using pre-computed hashes to deduplicate values in a single pass, avoiding the intermediate StringArray materialization