void setCompleteExpansionOn() {
    completeExpansion = true;
    if (groupJunctions != null && groupJunctions.size() == 1) {
      AbstractGroupOrRangeJunction gj = (AbstractGroupOrRangeJunction) groupJunctions.get(0);
      gj.setCompleteExpansionOn();
    }
  }
This flag gets toggled if only a Single CompositeGroupJunction gets created. It means that an
AllGroupJunction will not exist and the result obtained from the evaluation of
CompositeGroupJunction will be expanded to the level of query from clause ( i.e top level
iterators).
geode-core/src/main/java/org/apache/geode/cache/query/internal/CompositeGroupJunction.java