Skip to main content

encode_with_dictionary_cache

Function encode_with_dictionary_cache 

Source
fn encode_with_dictionary_cache<'a, K, V>(
    values: TypedDictionaryArray<'a, K, V>,
    indices: &[usize],
    dictionary: &ArrayRef,
    encoder: &mut ByteArrayEncoder,
) -> Result<()>
where K: ArrowDictionaryKeyType, V: Sync + Send, &'a V: ArrayAccessor, <&'a V as ArrayAccessor>::Item: Copy + Ord + Default + AsRef<[u8]>,
Expand description

Encodes the rows of an arrow dictionary at indices to encoder, which must have a dictionary encoder

This is a free function so it can be used with downcast_dict_values_op!