protected Map.Entry<Region, List<Index>> getFirstBucketIndex() {
    Map.Entry<Region, List<Index>> firstIndexEntry = null;
    synchronized (bucketIndexes) {
      if (bucketIndexes.size() > 0) {
        firstIndexEntry = bucketIndexes.entrySet().iterator().next();
      }
    }
    return firstIndexEntry;
  }
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