pub fn column_sizes(&self) -> impl Iterator<Item = (&str, usize)> + '_ {
        let dictionary_size = self.dictionary_size();
        self.batch
            .columns()
            .iter()
            .zip(self.stats.iter())
            .map(move |(array, summary)| {
                let size = match array.data_type() {
                    // Dictionary is only encoded once for all columns
                    DataType::Dictionary(_, _) => {
                        array.get_array_memory_size() + array.get_buffer_memory_size()
                            - dictionary_size
                    }
                    _ => array.get_array_memory_size() + array.get_buffer_memory_size(),
                };
                (summary.name.as_str(), size)
            })
            .chain(std::iter::once(("__dictionary", dictionary_size)))
    }
/// Returns an iterator over (column_name, estimated_size) for all
/// columns in this chunk.
///
/// Dictionary-encoded columns do not include the size of the shared dictionary
/// in their reported total
///
/// This is instead returned as a special "__dictionary" column
Returns an iterator over (column_name, estimated_size) for all
columns in this chunk.

Dictionary-encoded columns do not include the size of the shared dictionary
in their reported total

This is instead returned as a special "__dictionary" column
Returns an iterator over ( column_name estimated_size ) for all columns in this chunk . Dictionary - encoded columns do not include the size of the shared dictionary in their reported total This is instead returned as a special " __dictionary " column
pub fn column_sizes(&self) -> impl Iterator<Item = (&str, usize)> + '_ {
        let dictionary_size = self.dictionary_size();
        self.batch
            .columns()
            .iter()
            .zip(self.stats.iter())
            .map(move |(array, summary)| {
                let size = match array.data_type() {
                    // Dictionary is only encoded once for all columns
                    DataType::Dictionary(_, _) => {
                        array.get_array_memory_size() + array.get_buffer_memory_size()
                            - dictionary_size
                    }
                    _ => array.get_array_memory_size() + array.get_buffer_memory_size(),
                };
                (summary.name.as_str(), size)
            })
            .chain(std::iter::once(("__dictionary", dictionary_size)))
    }
pub fn column_sizes ( & self ) -> impl Iterator < Item = ( & str , usize ) > + ' _ { let dictionary_size = self . dictionary_size ( ) ; self . batch . columns ( ) . iter ( ) . zip ( self . stats . iter ( ) ) . map ( move | ( array , summary ) | { let size = match array . data_type ( ) { // Dictionary is only encoded once for all columns DataType :: Dictionary ( _ , _ ) => { array . get_array_memory_size ( ) + array . get_buffer_memory_size ( ) - dictionary_size } _ => array . get_array_memory_size ( ) + array . get_buffer_memory_size ( ) , } ; ( summary . name . as_str ( ) , size ) } ) . chain ( std :: iter :: once ( ( " " , dictionary_size ) ) ) }
Returns an iterator over (column_name, estimated_size) for all
columns in this chunk.
Returns an iterator over ( column_name estimated_size ) for all columns in this chunk .
&self
&self