pub fn dict<K: ArrowDictionaryKeyType + Send + Sync>(
generator: Box<dyn ArrayGenerator>,
) -> Box<dyn ArrayGenerator>
Expand description
Encodes arrays generated by the underlying generator as dictionaries with the given key type
Note that this may not be very realistic if the underlying generator is something like a random generator since most of the underlying values will be unique and the common case for dictionary encoding is when there is a small set of possible values.