public static DataContainerType determineDataContainerType(boolean getOrdered,
        boolean getDistinct, boolean getStructType, boolean getIgnoreOrderBy)
        throws TypeMismatchException {
      // if not isOrdered, then isIgnoreOrderBy is irrelevant
      return Arrays.stream(DataContainerType.values()).filter(type -> type.isOrdered == getOrdered)
          .filter(type -> type.isDistinct == getDistinct)
          .filter(type -> type.isStructType == getStructType)
          .filter(type -> type.isIgnoreOrderBy == getIgnoreOrderBy || !type.isOrdered).findFirst()
          .orElseThrow(() -> new TypeMismatchException("Logical inconsistency in CompiledSelect"));
    }
Check for the bulk-get pattern and if it applies do an optimized execution. The pattern is:
SELECT ?? FROM <Region>.entrySet e WHERE e.key IN <Collection>.

@return a List of entries if optimization was executed, or null if it wasn't because the
        optimization pattern didn't match
geode-core/src/main/java/org/apache/geode/cache/query/internal/CompiledSelect.java