org.apache.hive.service.cli
Class CLIServiceUtils
java.lang.Object
org.apache.hive.service.cli.CLIServiceUtils
public class CLIServiceUtils
- extends Object
CLIServiceUtils.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLIServiceUtils
public CLIServiceUtils()
patternToRegex
public static String patternToRegex(String pattern)
- Convert a SQL search pattern into an equivalent Java Regex.
- Parameters:
pattern
- input which may contain '%' or '_' wildcard characters, or
these characters escaped using #getSearchStringEscape()
.
- Returns:
- replace %/_ with regex search characters, also handle escaped
characters.
Copyright © 2013 The Apache Software Foundation