public String getTableName() {
    BasicStatsWork work = this;
    if (work.getLoadTableDesc() != null) {
      return work.getLoadTableDesc().getTable().getTableName();
    } else if (work.getTableSpecs() != null) {
      return work.getTableSpecs().getTableName().getTable();
    } else if (getLoadFileDesc().getCtasCreateTableDesc() != null) {
      return getLoadFileDesc().getCtasCreateTableDesc().getDbTableName();
    } else {
      return getLoadFileDesc().getCreateViewDesc().getViewName();
    }
  }
@param isNoScanAnalyzeCommand the isNoScanAnalyzeCommand to set
ql/src/java/org/apache/hadoop/hive/ql/plan/BasicStatsWork.java