pub fn stats(&self) -> Vec<ColumnSummary> {
        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::Tag => InfluxDbType::Tag,
                    InfluxColumnType::Field(_) => InfluxDbType::Field,
                    InfluxColumnType::Timestamp => InfluxDbType::Timestamp,
                }),
            })
            .collect();

        columns.sort_by(|a, b| a.name.cmp(&b.name));
        columns
    }
/// Returns a summary of all the columns, sorted by column name
Returns a summary of all the columns, sorted by column name
Returns a summary of all the columns sorted by column name
pub fn stats(&self) -> Vec<ColumnSummary> {
        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::Tag => InfluxDbType::Tag,
                    InfluxColumnType::Field(_) => InfluxDbType::Field,
                    InfluxColumnType::Timestamp => InfluxDbType::Timestamp,
                }),
            })
            .collect();
        columns.sort_by(|a, b| a.name.cmp(&b.name));
        columns
    }
pub fn stats ( & self ) -> Vec < ColumnSummary > { 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 :: Tag => InfluxDbType :: Tag , InfluxColumnType :: Field ( _ ) => InfluxDbType :: Field , InfluxColumnType :: Timestamp => InfluxDbType :: Timestamp , } ) , } ) . collect ( ) ; columns . sort_by ( | a , b | a . name . cmp ( & b . name ) ) ; columns }
Returns a summary of all the columns, sorted by column name
Returns a summary of all the columns sorted by column name
&self
&self