Skip to main content

estimate_encoded_buffer_count

Function estimate_encoded_buffer_count 

Source
fn estimate_encoded_buffer_count(dt: &DataType) -> usize
Expand description

Estimates the number of EncodedBuffer segments that write_array_data will produce for a column of the given type.

Based on the Arrow IPC buffer layout (https://arrow.apache.org/docs/format/Columnar.html#recordbatch-message):