public void setHasOrderBy(boolean hasOrderBy) {
    this.hasOrderBy = hasOrderBy;
  }
The return value of either isAnalyzeCommand() or isAnalyzeRewrite() is always true for analyze commands:
isAnalyzeCommand=true for "compute statistics",
isAnalyzeRewrite=true for "compute statistics for columns".

@return whether the query is an ANALYZE TABLE query
ql/src/java/org/apache/hadoop/hive/ql/QueryProperties.java