org.apache.hive.service.cli.session
Class Session
java.lang.Object
org.apache.hive.service.cli.session.Session
public class Session
- extends Object
Session.
Method Summary |
void |
close()
|
OperationHandle |
executeStatement(String statement,
Map<String,String> confOverlay)
|
OperationHandle |
getCatalogs()
|
OperationHandle |
getColumns(String catalogName,
String schemaName,
String tableName,
String columnName)
|
OperationHandle |
getFunctions(String catalogName,
String schemaName,
String functionName)
|
HiveConf |
getHiveConf()
|
GetInfoValue |
getInfo(GetInfoType getInfoType)
|
IMetaStoreClient |
getMetaStoreClient()
|
String |
getPassword()
|
OperationHandle |
getSchemas(String catalogName,
String schemaName)
|
SessionHandle |
getSessionHandle()
|
SessionState |
getSessionState()
|
OperationHandle |
getTables(String catalogName,
String schemaName,
String tableName,
List<String> tableTypes)
|
OperationHandle |
getTableTypes()
|
OperationHandle |
getTypeInfo()
|
String |
getUsername()
|
void |
setOperationManager(OperationManager operationManager)
|
void |
setSessionManager(SessionManager sessionManager)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Session
public Session(String username,
String password,
Map<String,String> sessionConf)
setSessionManager
public void setSessionManager(SessionManager sessionManager)
setOperationManager
public void setOperationManager(OperationManager operationManager)
getSessionHandle
public SessionHandle getSessionHandle()
getUsername
public String getUsername()
getPassword
public String getPassword()
getHiveConf
public HiveConf getHiveConf()
getMetaStoreClient
public IMetaStoreClient getMetaStoreClient()
throws HiveSQLException
- Throws:
HiveSQLException
getInfo
public GetInfoValue getInfo(GetInfoType getInfoType)
throws HiveSQLException
- Throws:
HiveSQLException
executeStatement
public OperationHandle executeStatement(String statement,
Map<String,String> confOverlay)
throws HiveSQLException
- Throws:
HiveSQLException
getTypeInfo
public OperationHandle getTypeInfo()
throws HiveSQLException
- Throws:
HiveSQLException
getCatalogs
public OperationHandle getCatalogs()
throws HiveSQLException
- Throws:
HiveSQLException
getSchemas
public OperationHandle getSchemas(String catalogName,
String schemaName)
throws HiveSQLException
- Throws:
HiveSQLException
getTables
public OperationHandle getTables(String catalogName,
String schemaName,
String tableName,
List<String> tableTypes)
throws HiveSQLException
- Throws:
HiveSQLException
getTableTypes
public OperationHandle getTableTypes()
throws HiveSQLException
- Throws:
HiveSQLException
getColumns
public OperationHandle getColumns(String catalogName,
String schemaName,
String tableName,
String columnName)
throws HiveSQLException
- Throws:
HiveSQLException
getFunctions
public OperationHandle getFunctions(String catalogName,
String schemaName,
String functionName)
throws HiveSQLException
- Throws:
HiveSQLException
close
public void close()
throws HiveSQLException
- Throws:
HiveSQLException
getSessionState
public SessionState getSessionState()
Copyright © 2011 The Apache Software Foundation