class_docstr: Query statistic metrics.
  
  These metrics are query/ranking based so a query_key must also be provided in
  the associated metrics spec.
class_docstr_tok: ["Query","statistic","metrics",".","These","metrics","are","query\/ranking","based","so","a","query_key","must","also","be","provided","in","the","associated","metrics","spec","."]
docstr: Initializes query statistics metrics.
  
  Args:
    total_queries_name: Total queries metric name.
    total_documents_name: Total documents metric name.
    min_documents_name: Min documents name.
    max_documents_name: Max documents name.
docstr_tok: ["Initializes","query","statistics","metrics",".","Args",":","total_queries_name",":","Total","queries","metric","name",".","total_documents_name",":","Total","documents","metric","name",".","min_documents_name",":","Min","documents","name",".","max_documents_name",":","Max","documents","name","."]
code: def __init__(
      self,
      total_queries_name: str = TOTAL_QUERIES_NAME,
      total_documents_name: str = TOTAL_DOCUMENTS_NAME,
      min_documents_name: str = MIN_DOCUMENTS_NAME,
      max_documents_name: str = MAX_DOCUMENTS_NAME,
  ):
      """Initializes query statistics metrics.
  
      Args:
        total_queries_name: Total queries metric name.
        total_documents_name: Total documents metric name.
        min_documents_name: Min documents name.
        max_documents_name: Max documents name.
      """
      super().__init__(
          _query_statistics,
          total_queries_name=total_queries_name,
          total_documents_name=total_documents_name,
          min_documents_name=min_documents_name,
          max_documents_name=max_documents_name,
      )
  
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 1 to create a new QueryStatistics object from inherited base classes: metric_types with example: obj = QueryStatistics(total_queries_name, total_documents_name, min_documents_name, max_documents_name)