protected Boolean applyComparator(int temporalResult, int comparator)
        throws IllegalArgumentException {
      switch (comparator) {
        case TOK_EQ:
          return temporalResult == 0;
        case TOK_LT:
          return temporalResult < 0;
        case TOK_LE:
          return temporalResult <= 0;
        case TOK_GT:
          return temporalResult > 0;
        case TOK_GE:
          return temporalResult >= 0;
        case TOK_NE:
          return temporalResult != 0;
        default:
          throw new IllegalArgumentException(String.format("Unknown operator: %s",
              comparator));
      }
    }
Enum to execute comparisons based on types.
geode-core/src/main/java/org/apache/geode/cache/query/internal/types/TypeUtils.java