/// Returns the total number of rows in the columns of this summary
Returns the total number of rows in the columns of this summary
Returns the total number of rows in the columns of this summary
pub fn total_count(&self) -> u64 {
        // Assumes that all tables have the same number of rows, so
        // pick the first one
        let count = self.columns.get(0).map(|c| c.total_count()).unwrap_or(0);
        // Validate that the counts are consistent across columns
        for c in &self.columns {
            // Restore to assert when https://github.com/influxdata/influxdb_iox/issues/2124 is fixed
            if c.total_count() != count {
                warn!(column_name=%c.name,
                      column_count=c.total_count(), previous_count=count,
                      "Mismatch in statistics count, see #2124");
            }
        }
        count
    }
pub fn total_count ( & self ) -> u64 { // Assumes that all tables have the same number of rows, so // pick the first one let count = self . columns . get ( 0 ) . map ( | c | c . total_count ( ) ) . unwrap_or ( 0 ) ; // Validate that the counts are consistent across columns for c in & self . columns { // Restore to assert when https://github.com/influxdata/influxdb_iox/issues/2124 is fixed if c . total_count ( ) != count { warn ! ( column_name c name column_count c total_count ( ) previous_count count " " ) ; } } count }
Returns the total number of rows in the columns of this summary
Returns the total number of rows in the columns of this summary
&self