Class LikeUtil
java.lang.Object
com.espertech.esper.common.internal.util.LikeUtil
- All Implemented Interfaces:
Serializable
Utility for performing a SQL Like comparsion.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Execute the string.void
resetPattern
(String pattern) Resets the search pattern.
-
Field Details
-
EPTYPE
-
-
Constructor Details
-
LikeUtil
Ctor.- Parameters:
pattern
- is the SQL-like pattern toescape
- is the escape characterignorecase
- is true to ignore the case, or false if not
-
-
Method Details
-
compare
Execute the string.- Parameters:
compareString
- is the string to compare- Returns:
- true if pattern matches, or false if not
-
resetPattern
Resets the search pattern.- Parameters:
pattern
- is the new pattern to match against
-