public HCatPartition next() throws HCatException {
      return new HCatPartition(hcatTable, iterator.next());
    }
Iterator over HCatPartitions in the HCatPartitionSpec.
hcatalog/webhcat/java-client/src/main/java/org/apache/hive/hcatalog/api/HCatPartitionSpec.java