|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.hive.ql.metadata.HiveUtils
public final class HiveUtils
General collection of helper functions.
Field Summary | |
---|---|
static char |
COLON
|
static String |
LBRACE
|
static String |
LBRACKET
|
static String |
LINE_SEP
|
static char |
QUOTE
|
static String |
RBRACE
|
static String |
RBRACKET
|
Method Summary | |
---|---|
static String |
escapeString(String str)
|
static org.apache.hadoop.io.Text |
escapeText(org.apache.hadoop.io.Text text)
|
static HiveAuthenticationProvider |
getAuthenticator(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars authenticatorConfKey)
|
static HiveAuthorizationProvider |
getAuthorizeProviderManager(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars authorizationProviderConfKey,
HiveAuthenticationProvider authenticator)
|
static HiveAuthorizationProvider |
getAuthorizeProviderManager(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars authorizationProviderConfKey,
HiveAuthenticationProvider authenticator,
boolean nullIfOtherClass)
Create a new instance of HiveAuthorizationProvider |
static HiveAuthorizerFactory |
getAuthorizerFactory(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars authorizationProviderConfKey)
Return HiveAuthorizerFactory used by new authorization plugin interface. |
static HiveIndexHandler |
getIndexHandler(HiveConf conf,
String indexHandlerClass)
|
static HiveStorageHandler |
getStorageHandler(org.apache.hadoop.conf.Configuration conf,
String className)
|
static String |
getUnparsedColumnNamesFromFieldSchema(List<org.apache.hadoop.hive.metastore.api.FieldSchema> fieldSchemas)
Convert FieldSchemas to columnNames with backticks around them. |
static String |
lightEscapeString(String str)
|
static int |
unescapeText(org.apache.hadoop.io.Text text)
|
static String |
unparseIdentifier(String identifier)
Regenerate an identifier as part of unparsing it back to SQL text. |
static String |
unparseIdentifier(String identifier,
org.apache.hadoop.conf.Configuration conf)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char QUOTE
public static final char COLON
public static final String LBRACKET
public static final String RBRACKET
public static final String LBRACE
public static final String RBRACE
public static final String LINE_SEP
Method Detail |
---|
public static String escapeString(String str)
public static org.apache.hadoop.io.Text escapeText(org.apache.hadoop.io.Text text)
public static int unescapeText(org.apache.hadoop.io.Text text)
public static String lightEscapeString(String str)
public static String unparseIdentifier(String identifier)
public static String unparseIdentifier(String identifier, org.apache.hadoop.conf.Configuration conf)
public static HiveStorageHandler getStorageHandler(org.apache.hadoop.conf.Configuration conf, String className) throws HiveException
HiveException
public static HiveIndexHandler getIndexHandler(HiveConf conf, String indexHandlerClass) throws HiveException
HiveException
public static HiveAuthorizationProvider getAuthorizeProviderManager(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars authorizationProviderConfKey, HiveAuthenticationProvider authenticator) throws HiveException
HiveException
public static HiveAuthorizationProvider getAuthorizeProviderManager(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars authorizationProviderConfKey, HiveAuthenticationProvider authenticator, boolean nullIfOtherClass) throws HiveException
conf
- authorizationProviderConfKey
- authenticator
- nullIfOtherClass
- - return null if configuration
does not point to a HiveAuthorizationProvider subclass
HiveException
public static HiveAuthorizerFactory getAuthorizerFactory(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars authorizationProviderConfKey) throws HiveException
conf
- authorizationProviderConfKey
-
HiveException
- if HiveAuthorizerFactory specified in configuration could notpublic static HiveAuthenticationProvider getAuthenticator(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars authenticatorConfKey) throws HiveException
HiveException
public static String getUnparsedColumnNamesFromFieldSchema(List<org.apache.hadoop.hive.metastore.api.FieldSchema> fieldSchemas)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |