private boolean isConditionSatisfied(Object key1, Object key2, int operator)
      throws TypeMismatchException {
    return (Boolean) TypeUtils.compare(key1, key2, operator);
  }
Checks if key1 operator key2 is true or not. The operator could be =, != , <, >,<=,>=

@return boolean true if the condition is satisfied else false
geode-core/src/main/java/org/apache/geode/cache/query/internal/RangeJunction.java