Package org.apache.calcite.schema.lookup
Class LikePattern
java.lang.Object
org.apache.calcite.schema.lookup.LikePattern
This class is used to hold a pattern, which is typically
used in SQL LIKE statements.
The pattern can contain wildcards (`%`) or character ranges (`[a-z]`).
The pattern can also be translated to a Predicate1<String>
which
can be used to do filtering inside java.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LikePattern
any()
static Pattern
likeToRegex
(String pattern) Converts a LIKE-style pattern (where '%' represents a wild-card, escaped using '\') to a Java regex.matcher()
static Predicate1<String>
toString()