polars_arrow::io::ipc::write

Function encode_dictionary

Source
pub fn encode_dictionary(
    dict_id: i64,
    array: &dyn Array,
    options: &WriteOptions,
    encoded_dictionaries: &mut Vec<EncodedData>,
) -> PolarsResult<()>
Available on crate feature io_ipc only.
Expand description

Encode a dictionary array with a certain id.

ยงPanics

This will panic if the given array is not a DictionaryArray.