fn estimate_encoded_buffer_count(dt: &DataType) -> usizeExpand 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):