public Collection getIndexes(IndexType indexType) {
    ArrayList<Index> list = new ArrayList<>();
    for (final Object ind : indexes.values()) {
      // Check if the value is instance of FutureTask, this means
      // the index is in create phase.
      if (ind instanceof FutureTask) {
        continue;
      }
      Index index = (Index) ind;

      // Check if indexType needs to be matched.
      if (indexType == null || index.getType() == indexType) {
        // No type check.
        list.add(index);
      }
    }
    return list;
  }
Get a collection of all the indexes. If the IndexType is specified returns only the matching
indexes.

@param indexType the type of indexes to get. Currently must be Indexable.FUNCTIONAL_SORTED
@return the collection of indexes for the specified region and type
geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexManager.java