public void setQuery(org.apache.hadoop.hive.ql.plan.api.Query query) {
    this.query = query;
  }
Extract all the counters from tasks and operators.
ql/src/java/org/apache/hadoop/hive/ql/QueryPlan.java