public Collection getIndexes() {
    if (indexes.isEmpty()) {
      return Collections.emptyList();
    }

    ArrayList idxs = new ArrayList();
    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 Index) {
        idxs.add(ind);
      }
    }
    return idxs;
  }
Gets a collecion of all the indexes created on this pr.

@return collection of all the indexes
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java