public PartitionedIndex getIndex(String indexName) {
    for (final Object ind : indexes.values()) {
      // Check if the returned value is instance of Index (this means
      // the index is not in create phase, its created successfully).
      if (ind instanceof PartitionedIndex && ((Index) ind).getName().equals(indexName)) {
        return (PartitionedIndex) ind;
      }
    }
    return null;
  }
Returns the a PartitionedIndex on this partitioned region.
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java