public List<Index> getBucketIndexes(Region r) {
    synchronized (bucketIndexes) {
      List<Index> indexes = new ArrayList<>();
      List<Index> indexList = bucketIndexes.get(r);
      if (indexList != null) {
        indexes.addAll(indexList);
      }
      return indexes;
    }
  }
Gets a collection of all the bucket indexes created so far.

@return bucketIndexes collection of all the bucket indexes.
geode-core/src/main/java/org/apache/geode/cache/query/internal/index/PartitionedIndex.java