@Override
    public Partition next() {
      Partition partition = getCurrent();
      ++index;
      return partition;
    }
Iterator implementation to iterate over all Partitions within the PartitionSpecWithSharedSDProxy.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/partition/spec/PartitionSpecWithSharedSDProxy.java