org.apache.hadoop.hive.ql.metadata
Class HiveUtils
java.lang.Object
org.apache.hadoop.hive.ql.metadata.HiveUtils
public final class HiveUtils
- extends Object
General collection of helper functions.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QUOTE
public static final char QUOTE
- See Also:
- Constant Field Values
COLON
public static final char COLON
- See Also:
- Constant Field Values
LBRACKET
public static final String LBRACKET
- See Also:
- Constant Field Values
RBRACKET
public static final String RBRACKET
- See Also:
- Constant Field Values
LBRACE
public static final String LBRACE
- See Also:
- Constant Field Values
RBRACE
public static final String RBRACE
- See Also:
- Constant Field Values
LINE_SEP
public static final String LINE_SEP
escapeString
public static String escapeString(String str)
escapeText
public static org.apache.hadoop.io.Text escapeText(org.apache.hadoop.io.Text text)
unescapeText
public static int unescapeText(org.apache.hadoop.io.Text text)
lightEscapeString
public static String lightEscapeString(String str)
unparseIdentifier
public static String unparseIdentifier(String identifier)
- Regenerate an identifier as part of unparsing it back to SQL text.
getStorageHandler
public static HiveStorageHandler getStorageHandler(org.apache.hadoop.conf.Configuration conf,
String className)
throws HiveException
- Throws:
HiveException
getIndexHandler
public static HiveIndexHandler getIndexHandler(HiveConf conf,
String indexHandlerClass)
throws HiveException
- Throws:
HiveException
getAuthorizeProviderManager
public static HiveAuthorizationProvider getAuthorizeProviderManager(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars authorizationProviderConfKey,
HiveAuthenticationProvider authenticator)
throws HiveException
- Throws:
HiveException
getAuthenticator
public static HiveAuthenticationProvider getAuthenticator(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars authenticatorConfKey)
throws HiveException
- Throws:
HiveException
getUnparsedColumnNamesFromFieldSchema
public static String getUnparsedColumnNamesFromFieldSchema(List<FieldSchema> fieldSchemas)
- Convert FieldSchemas to columnNames with backticks around them.
Copyright © 2013 The Apache Software Foundation