@Override
  OrganizedOperands organizeOperands(ExecutionContext context) throws FunctionDomainException,
      TypeMismatchException, NameResolutionException, QueryInvocationTargetException {
    // get the list of operands to evaluate,
    // and evaluate operands that can use indexes first
    if (getOperator() == LITERAL_and) {
      return organizeOperandsForAndJunction(context);
    } else {
      throw new IllegalStateException(
          "In the case of an OR junction a RangeJunction should not be formed for now");
    }
  }
Segregates the operands of the RangeJunction into iter evaluatable and filter evaluatable.
geode-core/src/main/java/org/apache/geode/cache/query/internal/RangeJunction.java