org.apache.hive.service.cli
Class CLIServiceUtils

java.lang.Object
  extended by org.apache.hive.service.cli.CLIServiceUtils

public class CLIServiceUtils
extends Object

CLIServiceUtils.


Constructor Summary
CLIServiceUtils()
           
 
Method Summary
static String patternToRegex(String pattern)
          Convert a SQL search pattern into an equivalent Java Regex.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLIServiceUtils

public CLIServiceUtils()
Method Detail

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