pub fn table_summary(&self) -> TableSummary {
        let mut columns: Vec<_> = self
            .columns
            .iter()
            .map(|(column_name, c)| ColumnSummary {
                name: column_name.to_string(),
                stats: c.stats(),
                influxdb_type: Some(match c.influx_type() {
                    InfluxColumnType::IOx(_) => InfluxDbType::IOx,
                    InfluxColumnType::Tag => InfluxDbType::Tag,
                    InfluxColumnType::Field(_) => InfluxDbType::Field,
                    InfluxColumnType::Timestamp => InfluxDbType::Timestamp,
                }),
            })
            .collect();

        columns.sort_by(|a, b| a.name.cmp(&b.name));

        TableSummary {
            name: self.table_name.to_string(),
            columns,
        }
    }
/// Returns a table summary for this chunk
Returns a table summary for this chunk
Returns a table summary for this chunk
pub fn table_summary(&self) -> TableSummary {
        let mut columns: Vec<_> = self
            .columns
            .iter()
            .map(|(column_name, c)| ColumnSummary {
                name: column_name.to_string(),
                stats: c.stats(),
                influxdb_type: Some(match c.influx_type() {
                    InfluxColumnType::IOx(_) => InfluxDbType::IOx,
                    InfluxColumnType::Tag => InfluxDbType::Tag,
                    InfluxColumnType::Field(_) => InfluxDbType::Field,
                    InfluxColumnType::Timestamp => InfluxDbType::Timestamp,
                }),
            })
            .collect();
        columns.sort_by(|a, b| a.name.cmp(&b.name));
        TableSummary {
            name: self.table_name.to_string(),
            columns,
        }
    }
pub fn table_summary ( & self ) -> TableSummary { let mut columns : Vec < _ > = self . columns . iter ( ) . map ( | ( column_name , c ) | ColumnSummary { name : column_name . to_string ( ) , stats : c . stats ( ) , influxdb_type : Some ( match c . influx_type ( ) { InfluxColumnType :: IOx ( _ ) => InfluxDbType :: IOx , InfluxColumnType :: Tag => InfluxDbType :: Tag , InfluxColumnType :: Field ( _ ) => InfluxDbType :: Field , InfluxColumnType :: Timestamp => InfluxDbType :: Timestamp , } ) , } ) . collect ( ) ; columns . sort_by ( | a , b | a . name . cmp ( & b . name ) ) ; TableSummary { name : self . table_name . to_string ( ) , columns , } }
Returns a table summary for this chunk
Returns a table summary for this chunk
&self
&self