public Set<String> getRegionsInQuery(Object[] parameters) {
    Set<String> regions = new HashSet<>();
    compiledQuery.getRegionsInQuery(regions, parameters);
    return Collections.unmodifiableSet(regions);
  }
Returns an unmodifiable Set containing the Region names which are present in the Query. A
region which is associated with the query as a bind parameter will not be included in the list.
The Region names returned by the query do not indicate anything about the state of the region
or whether the region actually exists in the GemfireCache etc.

@param parameters the parameters to be passed in to the query when executed
@return Unmodifiable List containing the region names.
geode-core/src/main/java/org/apache/geode/cache/query/internal/DefaultQuery.java