public Index retrieveArbitraryBucketIndex() {
    Index index = null;
    synchronized (bucketIndexes) {
      if (bucketIndexes.size() > 0) {
        List<Index> indexList = bucketIndexes.values().iterator().next();
        if (indexList != null && indexList.size() > 0) {
          index = indexList.get(0);
        }
      }
    }
    return index;
  }
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