|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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. |
String |
getClusterUser()
|
CubeMetastoreClient |
getCubeMetastoreClient()
|
String |
getCurrentDatabase()
|
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 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 address
public 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 address| Method 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
LensExceptionpublic void acquire()
acquire in class org.apache.hive.service.cli.session.HiveSessionImplpublic void release()
release in class org.apache.hive.service.cli.session.HiveSessionImplpublic boolean isActive()
public void setConfig(String key,
String value)
key - the keyvalue - the value
public void removeResource(String type,
String path)
type - the typepath - the path
public void addResource(String type,
String path)
type - the typepath - the pathpublic void setCurrentDatabase(String currentDatabase)
public String getCurrentDatabase()
public String toString()
toString in class Objectpublic String getLoggedInUser()
public String getClusterUser()
public LensSessionImpl.LensSessionPersistInfo getLensSessionPersistInfo()
public long getLastAccessTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||