public class HiveSessionImpl extends java.lang.Object implements HiveSession
| Constructor and Description |
|---|
HiveSessionImpl(java.lang.String username,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String> sessionConf) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
acquire() |
void |
cancelOperation(OperationHandle opHandle) |
void |
close()
close the session
|
void |
closeOperation(OperationHandle opHandle) |
OperationHandle |
executeStatement(java.lang.String statement,
java.util.Map<java.lang.String,java.lang.String> confOverlay)
execute operation handler
|
OperationHandle |
executeStatementAsync(java.lang.String statement,
java.util.Map<java.lang.String,java.lang.String> confOverlay)
execute operation handler
|
RowSet |
fetchResults(OperationHandle opHandle) |
RowSet |
fetchResults(OperationHandle opHandle,
FetchOrientation orientation,
long maxRows) |
OperationHandle |
getCatalogs()
getCatalogs operation handler
|
OperationHandle |
getColumns(java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName,
java.lang.String columnName)
getColumns operation handler
|
OperationHandle |
getFunctions(java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String functionName)
getFunctions operation handler
|
HiveConf |
getHiveConf() |
GetInfoValue |
getInfo(GetInfoType getInfoType)
getInfo operation handler
|
IMetaStoreClient |
getMetaStoreClient() |
java.lang.String |
getPassword() |
TableSchema |
getResultSetMetadata(OperationHandle opHandle) |
OperationHandle |
getSchemas(java.lang.String catalogName,
java.lang.String schemaName)
getSchemas operation handler
|
protected HiveSession |
getSession() |
SessionHandle |
getSessionHandle() |
SessionManager |
getSessionManager()
Get the session manager for the session
|
SessionState |
getSessionState() |
OperationHandle |
getTables(java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName,
java.util.List<java.lang.String> tableTypes)
getTables operation handler
|
OperationHandle |
getTableTypes()
getTableTypes operation handler
|
OperationHandle |
getTypeInfo()
getTypeInfo operation handler
|
java.lang.String |
getUsername() |
java.lang.String |
getUserName() |
protected void |
release() |
void |
setOperationManager(OperationManager operationManager)
Set operation manager for the session
|
void |
setSessionManager(SessionManager sessionManager)
Set the session manager for the session
|
void |
setUserName(java.lang.String userName) |
public HiveSessionImpl(java.lang.String username,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String> sessionConf)
public SessionManager getSessionManager()
HiveSessiongetSessionManager in interface HiveSessionpublic void setSessionManager(SessionManager sessionManager)
HiveSessionsetSessionManager in interface HiveSessionpublic void setOperationManager(OperationManager operationManager)
HiveSessionsetOperationManager in interface HiveSessionprotected void acquire()
throws HiveSQLException
HiveSQLExceptionprotected void release()
public SessionHandle getSessionHandle()
getSessionHandle in interface HiveSessionpublic java.lang.String getUsername()
getUsername in interface HiveSessionpublic java.lang.String getPassword()
getPassword in interface HiveSessionpublic HiveConf getHiveConf()
getHiveConf in interface HiveSessionpublic IMetaStoreClient getMetaStoreClient() throws HiveSQLException
getMetaStoreClient in interface HiveSessionHiveSQLExceptionpublic GetInfoValue getInfo(GetInfoType getInfoType) throws HiveSQLException
HiveSessiongetInfo in interface HiveSessionHiveSQLExceptionpublic OperationHandle executeStatement(java.lang.String statement, java.util.Map<java.lang.String,java.lang.String> confOverlay) throws HiveSQLException
HiveSessionexecuteStatement in interface HiveSessionHiveSQLExceptionpublic OperationHandle executeStatementAsync(java.lang.String statement, java.util.Map<java.lang.String,java.lang.String> confOverlay) throws HiveSQLException
HiveSessionexecuteStatementAsync in interface HiveSessionHiveSQLExceptionpublic OperationHandle getTypeInfo() throws HiveSQLException
HiveSessiongetTypeInfo in interface HiveSessionHiveSQLExceptionpublic OperationHandle getCatalogs() throws HiveSQLException
HiveSessiongetCatalogs in interface HiveSessionHiveSQLExceptionpublic OperationHandle getSchemas(java.lang.String catalogName, java.lang.String schemaName) throws HiveSQLException
HiveSessiongetSchemas in interface HiveSessionHiveSQLExceptionpublic OperationHandle getTables(java.lang.String catalogName, java.lang.String schemaName, java.lang.String tableName, java.util.List<java.lang.String> tableTypes) throws HiveSQLException
HiveSessiongetTables in interface HiveSessionHiveSQLExceptionpublic OperationHandle getTableTypes() throws HiveSQLException
HiveSessiongetTableTypes in interface HiveSessionHiveSQLExceptionpublic OperationHandle getColumns(java.lang.String catalogName, java.lang.String schemaName, java.lang.String tableName, java.lang.String columnName) throws HiveSQLException
HiveSessiongetColumns in interface HiveSessionHiveSQLExceptionpublic OperationHandle getFunctions(java.lang.String catalogName, java.lang.String schemaName, java.lang.String functionName) throws HiveSQLException
HiveSessiongetFunctions in interface HiveSessionHiveSQLExceptionpublic void close()
throws HiveSQLException
HiveSessionclose in interface HiveSessionHiveSQLExceptionpublic SessionState getSessionState()
getSessionState in interface HiveSessionpublic java.lang.String getUserName()
getUserName in interface HiveSessionpublic void setUserName(java.lang.String userName)
setUserName in interface HiveSessionpublic void cancelOperation(OperationHandle opHandle) throws HiveSQLException
cancelOperation in interface HiveSessionHiveSQLExceptionpublic void closeOperation(OperationHandle opHandle) throws HiveSQLException
closeOperation in interface HiveSessionHiveSQLExceptionpublic TableSchema getResultSetMetadata(OperationHandle opHandle) throws HiveSQLException
getResultSetMetadata in interface HiveSessionHiveSQLExceptionpublic RowSet fetchResults(OperationHandle opHandle, FetchOrientation orientation, long maxRows) throws HiveSQLException
fetchResults in interface HiveSessionHiveSQLExceptionpublic RowSet fetchResults(OperationHandle opHandle) throws HiveSQLException
fetchResults in interface HiveSessionHiveSQLExceptionprotected HiveSession getSession()
Copyright © 2012 The Apache Software Foundation