The CONTAINS AND LIKE statements are implemented with java.util.regex.Pattern.
So the the pattern string should use Java regex syntax, which is not the same as traditional SQL regex syntax.
For example, HBql uses 'foo.*bar' instead of 'foo*bar'.
Operator | Precedence | Description | Supported types |
---|---|---|---|
- | right | unary minus | numeric |
* / | left | multiplication, division | numeric |
+ - | left | addition, subtraction | numeric (+ applies to string) |
CONTAINS | substring containment | string | |
LIKE | string pattern matching | string | |
IS | test for NULL | string | |
BETWEEN | containment | numeric, string, date | |
IN | set membership | numeric, string, date, boolean | |
< = > = | boolean inequality | numeric, string, date | |
= != | equality | numeric, string, date | |
NOT | right | negation | boolean |
AND | left | logical intersection | boolean |
OR | left | logical union | boolean |