pub(crate) fn into_thrift(self) -> RowGroup {
        let file_offset = self
            .columns
            .iter()
            .map(|c| {
                ColumnOffsetsMetadata::from_column_chunk_metadata(c).calc_row_group_file_offset()
            })
            .next()
            .unwrap_or(None);
        let total_compressed_size = Some(self.compressed_size() as i64);
        RowGroup {
            columns: self.columns.into_iter().map(|v| v.into_thrift()).collect(),
            total_byte_size: self.total_byte_size as i64,
            num_rows: self.num_rows as i64,
            sorting_columns: None,
            file_offset,
            total_compressed_size,
            ordinal: None,
        }
    }
/// Method to convert to Thrift.
Method to convert to Thrift.
Method to convert to Thrift .
pub(crate) fn into_thrift(self) -> RowGroup {
        let file_offset = self
            .columns
            .iter()
            .map(|c| {
                ColumnOffsetsMetadata::from_column_chunk_metadata(c).calc_row_group_file_offset()
            })
            .next()
            .unwrap_or(None);
        let total_compressed_size = Some(self.compressed_size() as i64);
        RowGroup {
            columns: self.columns.into_iter().map(|v| v.into_thrift()).collect(),
            total_byte_size: self.total_byte_size as i64,
            num_rows: self.num_rows as i64,
            sorting_columns: None,
            file_offset,
            total_compressed_size,
            ordinal: None,
        }
    }
pub ( crate ) fn into_thrift ( self ) -> RowGroup { let file_offset = self . columns . iter ( ) . map ( | c | { ColumnOffsetsMetadata :: from_column_chunk_metadata ( c ) . calc_row_group_file_offset ( ) } ) . next ( ) . unwrap_or ( None ) ; let total_compressed_size = Some ( self . compressed_size ( ) as i64 ) ; RowGroup { columns : self . columns . into_iter ( ) . map ( | v | v . into_thrift ( ) ) . collect ( ) , total_byte_size : self . total_byte_size as i64 , num_rows : self . num_rows as i64 , sorting_columns : None , file_offset , total_compressed_size , ordinal : None , } }
Method to convert to Thrift.
Method to convert to Thrift .
self