Skip to content

Commit

Permalink
Speed up BinaryOperatorTransformFunction evaluation to use PredicateE…
Browse files Browse the repository at this point in the history
…valuator
  • Loading branch information
xiangfu0 committed Dec 14, 2024
1 parent 3677671 commit c2c2707
Show file tree
Hide file tree
Showing 2 changed files with 285 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,20 @@ public String toString() {
return "(" + _lhs + (_lowerInclusive ? " >= '" : " > '") + _lowerBound + "' AND " + _lhs + (_upperInclusive
? " <= '" : " < '") + _upperBound + "')";
}

public static String getGreatRange(String value) {
return LOWER_EXCLUSIVE + value + DELIMITER + UNBOUNDED + UPPER_EXCLUSIVE;
}

public static String getLessRange(String value) {
return LOWER_EXCLUSIVE + UNBOUNDED + DELIMITER + value + UPPER_EXCLUSIVE;
}

public static String getGreatEqualRange(String value) {
return LOWER_INCLUSIVE + value + DELIMITER + UNBOUNDED + UPPER_EXCLUSIVE;
}

public static String getLessEqualRange(String value) {
return LOWER_EXCLUSIVE + UNBOUNDED + DELIMITER + value + UPPER_INCLUSIVE;
}
}
Loading

0 comments on commit c2c2707

Please sign in to comment.