|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.hive.ql.session.SessionState
public class SessionState
SessionState encapsulates common data associated with a session. Also provides support for a thread static session object that can be accessed from any point in the code to interact with the user and to retrieve configuration information
Nested Class Summary | |
---|---|
static class |
SessionState.AuthorizationMode
|
static class |
SessionState.LogHelper
This class provides helper routines to emit informational and error messages to the user and log4j files while obeying the current session's verbosity levels. |
static interface |
SessionState.ResourceHook
ResourceHook. |
static class |
SessionState.ResourceType
ResourceType. |
Field Summary | |
---|---|
PrintStream |
childErr
Error output from any child process(es). |
PrintStream |
childOut
Standard output from any child process(es). |
PrintStream |
err
|
InputStream |
in
Streams to read/write from. |
PrintStream |
info
|
PrintStream |
out
|
Constructor Summary | |
---|---|
SessionState(HiveConf conf)
|
|
SessionState(HiveConf conf,
String userName)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public InputStream in
public PrintStream out
public PrintStream info
public PrintStream err
public PrintStream childOut
public PrintStream childErr
Constructor Detail |
---|
public SessionState(HiveConf conf)
public SessionState(HiveConf conf, String userName)
Method Detail |
---|
public LineageState getLineageState()
public HiveConf getConf()
public void setConf(HiveConf conf)
public File getTmpOutputFile()
public void setTmpOutputFile(File f)
public boolean getIsSilent()
public boolean isHiveServerQuery()
public void setIsSilent(boolean isSilent)
public boolean getIsVerbose()
public void setIsVerbose(boolean isVerbose)
public void setIsHiveServerQuery(boolean isHiveServerQuery)
public void setCmd(String cmdString)
public String getCmd()
public String getQueryId()
public Map<String,String> getHiveVariables()
public void setHiveVariables(Map<String,String> hiveVariables)
public String getSessionId()
public static SessionState start(HiveConf conf)
public static void setCurrentSessionState(SessionState startSs)
public static void detachSession()
public static SessionState start(SessionState startSs)
HiveException
public static SessionState get()
public HiveHistory getHiveHistory()
public String getLastCommand()
public void setLastCommand(String lastCommand)
public static SessionState.LogHelper getConsole()
public static String validateFile(Set<String> curFiles, String newFile)
public static String getUserFromAuthenticator()
public static boolean registerJar(String newJar)
public static boolean unregisterJar(String jarsToUnregister)
public static SessionState.ResourceType find_resource_type(String s)
public String add_resource(SessionState.ResourceType t, String value)
public String add_resource(SessionState.ResourceType t, String value, boolean convertToUnix)
public void add_builtin_resource(SessionState.ResourceType t, String value)
public static boolean canDownloadResource(String value)
public String downloadResource(String value, boolean convertToUnix)
public boolean delete_resource(SessionState.ResourceType t, String value)
public Set<String> list_resource(SessionState.ResourceType t, List<String> filter)
public void delete_resource(SessionState.ResourceType t)
public String getCommandType()
public HiveOperation getHiveOperation()
public void setCommandType(HiveOperation commandType)
public HiveAuthorizationProvider getAuthorizer()
public void setAuthorizer(HiveAuthorizationProvider authorizer)
public HiveAuthorizer getAuthorizerV2()
public HiveAuthenticationProvider getAuthenticator()
public void setAuthenticator(HiveAuthenticationProvider authenticator)
public CreateTableAutomaticGrant getCreateTableGrants()
public void setCreateTableGrants(CreateTableAutomaticGrant createTableGrants)
public List<MapRedStats> getLastMapRedStatsList()
public void setLastMapRedStatsList(List<MapRedStats> lastMapRedStatsList)
public void setStackTraces(Map<String,List<List<String>>> stackTraces)
public Map<String,List<List<String>>> getStackTraces()
public Map<String,String> getOverriddenConfigurations()
public void setOverriddenConfigurations(Map<String,String> overriddenConfigurations)
public Map<String,List<String>> getLocalMapRedErrors()
public void addLocalMapRedErrors(String id, List<String> localMapRedErrors)
public void setLocalMapRedErrors(Map<String,List<String>> localMapRedErrors)
public String getCurrentDatabase()
public void setCurrentDatabase(String currentDatabase)
public void close() throws IOException
IOException
public SessionState.AuthorizationMode getAuthorizationMode()
public boolean isAuthorizationModeV2()
public PerfLogger getPerfLogger(boolean resetPerfLogger)
resetPerfLogger
-
public TezSessionState getTezSession()
public void setTezSession(TezSessionState session)
public String getUserName()
public void applyAuthorizationPolicy() throws HiveException
hiveConf
-
HiveException
public boolean hasAddedResource()
public void setAddedResource(boolean addedResouce)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |