|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hive.service.cli.session.HiveSessionImpl org.apache.lens.server.session.LensSessionImpl
public class LensSessionImpl
The Class LensSessionImpl.
Nested Class Summary | |
---|---|
static class |
LensSessionImpl.LensSessionPersistInfo
The Class LensSessionPersistInfo. |
static class |
LensSessionImpl.ResourceEntry
The Class ResourceEntry. |
Field Summary | |
---|---|
static Map<String,String> |
DEFAULT_HIVE_SESSION_CONF
The default hive session conf. |
static org.apache.commons.logging.Log |
LOG
The Constant LOG. |
Fields inherited from interface org.apache.hive.service.cli.session.HiveSession |
---|
SESSION_CLOSED_MARKER |
Constructor Summary | |
---|---|
LensSessionImpl(org.apache.hive.service.cli.SessionHandle sessionHandle,
org.apache.hive.service.cli.thrift.TProtocolVersion protocol,
String username,
String password,
org.apache.hadoop.hive.conf.HiveConf serverConf,
Map<String,String> sessionConf,
String ipAddress)
Constructor used when restoring session. |
|
LensSessionImpl(org.apache.hive.service.cli.thrift.TProtocolVersion protocol,
String username,
String password,
org.apache.hadoop.hive.conf.HiveConf serverConf,
Map<String,String> sessionConf,
String ipAddress)
Instantiates a new lens session impl. |
Method Summary | |
---|---|
void |
acquire()
|
void |
addResource(String type,
String path)
Adds the resource. |
static org.apache.hadoop.conf.Configuration |
createDefaultConf()
Creates the default conf. |
ClassLoader |
getClassLoader()
Get effective class loader for this session |
String |
getClusterUser()
|
CubeMetastoreClient |
getCubeMetastoreClient()
|
String |
getCurrentDatabase()
|
Collection<LensSessionImpl.ResourceEntry> |
getCurrentDBResources()
Return resources which are added statically to the current database |
static Map<String,String> |
getHiveSessionConf()
|
long |
getLastAccessTime()
|
LensSessionImpl.LensSessionPersistInfo |
getLensSessionPersistInfo()
|
String |
getLoggedInUser()
|
org.apache.hadoop.conf.Configuration |
getSessionConf()
|
boolean |
isActive()
|
void |
release()
|
void |
removeResource(String type,
String path)
Removes the resource. |
void |
setConfig(String key,
String value)
Sets the config. |
void |
setCurrentDatabase(String currentDatabase)
|
String |
toString()
|
Methods inherited from class org.apache.hive.service.cli.session.HiveSessionImpl |
---|
cancelDelegationToken, cancelOperation, close, closeOperation, executeStatement, executeStatementAsync, fetchResults, fetchResults, getCatalogs, getColumns, getDelegationToken, getFunctions, getHiveConf, getInfo, getIpAddress, getMetaStoreClient, getPassword, getProtocolVersion, getQueryPlan, getResultSetMetadata, getSchemas, getSessionHandle, getSessionLogDir, getSessionManager, getSessionState, getTables, getTableTypes, getTypeInfo, getUsername, getUserName, isLogRedirectionEnabled, open, renewDelegationToken, setIpAddress, setOperationManager, setSessionManager, setupLogRedirection, setUserName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
public static final Map<String,String> DEFAULT_HIVE_SESSION_CONF
Constructor Detail |
---|
public LensSessionImpl(org.apache.hive.service.cli.thrift.TProtocolVersion protocol, String username, String password, org.apache.hadoop.hive.conf.HiveConf serverConf, Map<String,String> sessionConf, String ipAddress)
protocol
- the protocolusername
- the usernamepassword
- the passwordserverConf
- the server confsessionConf
- the session confipAddress
- the ip addresspublic LensSessionImpl(org.apache.hive.service.cli.SessionHandle sessionHandle, org.apache.hive.service.cli.thrift.TProtocolVersion protocol, String username, String password, org.apache.hadoop.hive.conf.HiveConf serverConf, Map<String,String> sessionConf, String ipAddress)
sessionHandle
- the session handleprotocol
- the protocolusername
- the usernamepassword
- the passwordserverConf
- the server confsessionConf
- the session confipAddress
- the ip addressMethod Detail |
---|
public static org.apache.hadoop.conf.Configuration createDefaultConf()
public static Map<String,String> getHiveSessionConf()
public org.apache.hadoop.conf.Configuration getSessionConf()
public CubeMetastoreClient getCubeMetastoreClient() throws LensException
LensException
public void acquire()
acquire
in class org.apache.hive.service.cli.session.HiveSessionImpl
public void release()
release
in class org.apache.hive.service.cli.session.HiveSessionImpl
public boolean isActive()
public void setConfig(String key, String value)
key
- the keyvalue
- the valuepublic void removeResource(String type, String path)
type
- the typepath
- the pathpublic void addResource(String type, String path)
type
- the typepath
- the pathpublic void setCurrentDatabase(String currentDatabase)
public String getCurrentDatabase()
public String toString()
toString
in class Object
public String getLoggedInUser()
public String getClusterUser()
public LensSessionImpl.LensSessionPersistInfo getLensSessionPersistInfo()
public long getLastAccessTime()
public Collection<LensSessionImpl.ResourceEntry> getCurrentDBResources()
public ClassLoader getClassLoader()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |