fn update_column_storage_statistics(&mut self, statistics: &[Statistics]) {
        for stat in statistics {
            let labels = &[
                KeyValue::new("encoding", stat.enc_type.clone()),
                KeyValue::new("log_data_type", stat.log_data_type),
            ];

            // update number of columns
            self.columns_total.inc(1, labels);

            // update bytes associated with columns
            self.column_bytes_total.inc(stat.bytes, labels);

            // update raw estimated bytes of NULL values
            self.column_raw_bytes_total.inc(
                stat.raw_bytes - stat.raw_bytes_no_null,
                &[
                    KeyValue::new("encoding", stat.enc_type.clone()),
                    KeyValue::new("log_data_type", stat.log_data_type),
                    KeyValue::new("null", "true"),
                ],
            );

            // update raw estimated bytes of non-NULL values
            self.column_raw_bytes_total.inc(
                stat.raw_bytes_no_null,
                &[
                    KeyValue::new("encoding", stat.enc_type.clone()),
                    KeyValue::new("log_data_type", stat.log_data_type),
                    KeyValue::new("null", "false"),
                ],
            );

            // update number of NULL values
            self.column_values_total.inc(
                stat.nulls as usize,
                &[
                    KeyValue::new("encoding", stat.enc_type.clone()),
                    KeyValue::new("log_data_type", stat.log_data_type),
                    KeyValue::new("null", "true"),
                ],
            );

            // update number of non-NULL values
            self.column_values_total.inc(
                (stat.values - stat.nulls) as usize,
                &[
                    KeyValue::new("encoding", stat.enc_type.clone()),
                    KeyValue::new("log_data_type", stat.log_data_type),
                    KeyValue::new("null", "false"),
                ],
            );
        }
    }
// Updates column storage statistics for the Read Buffer.
Updates column storage statistics for the Read Buffer.
Updates column storage statistics for the Read Buffer .
fn update_column_storage_statistics(&mut self, statistics: &[Statistics]) {
        for stat in statistics {
            let labels = &[
                KeyValue::new("encoding", stat.enc_type.clone()),
                KeyValue::new("log_data_type", stat.log_data_type),
            ];
            // update number of columns
            self.columns_total.inc(1, labels);
            // update bytes associated with columns
            self.column_bytes_total.inc(stat.bytes, labels);
            // update raw estimated bytes of NULL values
            self.column_raw_bytes_total.inc(
                stat.raw_bytes - stat.raw_bytes_no_null,
                &[
                    KeyValue::new("encoding", stat.enc_type.clone()),
                    KeyValue::new("log_data_type", stat.log_data_type),
                    KeyValue::new("null", "true"),
                ],
            );
            // update raw estimated bytes of non-NULL values
            self.column_raw_bytes_total.inc(
                stat.raw_bytes_no_null,
                &[
                    KeyValue::new("encoding", stat.enc_type.clone()),
                    KeyValue::new("log_data_type", stat.log_data_type),
                    KeyValue::new("null", "false"),
                ],
            );
            // update number of NULL values
            self.column_values_total.inc(
                stat.nulls as usize,
                &[
                    KeyValue::new("encoding", stat.enc_type.clone()),
                    KeyValue::new("log_data_type", stat.log_data_type),
                    KeyValue::new("null", "true"),
                ],
            );
            // update number of non-NULL values
            self.column_values_total.inc(
                (stat.values - stat.nulls) as usize,
                &[
                    KeyValue::new("encoding", stat.enc_type.clone()),
                    KeyValue::new("log_data_type", stat.log_data_type),
                    KeyValue::new("null", "false"),
                ],
            );
        }
    }
fn update_column_storage_statistics ( & mut self , statistics : & [ Statistics ] ) { for stat in statistics { let labels = & [ KeyValue :: new ( " " , stat . enc_type . clone ( ) ) , KeyValue :: new ( " " , stat . log_data_type ) , ] ; // update number of columns self . columns_total . inc ( 1 , labels ) ; // update bytes associated with columns self . column_bytes_total . inc ( stat . bytes , labels ) ; // update raw estimated bytes of NULL values self . column_raw_bytes_total . inc ( stat . raw_bytes - stat . raw_bytes_no_null , & [ KeyValue :: new ( " " , stat . enc_type . clone ( ) ) , KeyValue :: new ( " " , stat . log_data_type ) , KeyValue :: new ( " " , " " ) , ] , ) ; // update raw estimated bytes of non-NULL values self . column_raw_bytes_total . inc ( stat . raw_bytes_no_null , & [ KeyValue :: new ( " " , stat . enc_type . clone ( ) ) , KeyValue :: new ( " " , stat . log_data_type ) , KeyValue :: new ( " " , " " ) , ] , ) ; // update number of NULL values self . column_values_total . inc ( stat . nulls as usize , & [ KeyValue :: new ( " " , stat . enc_type . clone ( ) ) , KeyValue :: new ( " " , stat . log_data_type ) , KeyValue :: new ( " " , " " ) , ] , ) ; // update number of non-NULL values self . column_values_total . inc ( ( stat . values - stat . nulls ) as usize , & [ KeyValue :: new ( " " , stat . enc_type . clone ( ) ) , KeyValue :: new ( " " , stat . log_data_type ) , KeyValue :: new ( " " , " " ) , ] , ) ; } }
Updates column storage statistics for the Read Buffer.
Updates column storage statistics for the Read Buffer .
&mut self
statistics
&[Statistics]
&mut self
statistics
&[Statistics]