class_docstr: Computes query statistics metrics.
class_docstr_tok: ["Computes","query","statistics","metrics","."]
code: def merge_accumulators(
      self, accumulators: Iterable[_QueryStatisticsAccumulator]
  ) -> _QueryStatisticsAccumulator:
      accumulators = iter(accumulators)
      result = next(accumulators)
      for accumulator in accumulators:
          result.total_queries += accumulator.total_queries
          result.total_documents += accumulator.total_documents
          result.min_documents = min(
              result.min_documents, accumulator.min_documents
          )
          result.max_documents = max(
              result.max_documents, accumulator.max_documents
          )
      return result
  
file_path: model-analysis/tensorflow_model_analysis/metrics/query_statistics.py
imports: from typing import Dict, Iterable, Optional
  import apache_beam
  from tensorflow_model_analysis.metrics import metric_types
  from tensorflow_model_analysis.metrics import metric_util
  from tensorflow_model_analysis.proto import config_pb2
label_desc: Use image node_id 4 for calling the _QueryStatisticsCombiner obj's underlying member method code with example usage: obj.merge_accumulators(accumulators) and returns: result