public TableSpec getTableSpec() {

    Iterator<String> tName = tableSpecs.keySet().iterator();
    return tableSpecs.get(tName.next());
  }
This method is used only for the analyze command to get the partition specs
ql/src/java/org/apache/hadoop/hive/ql/parse/QBParseInfo.java