public interface HiveSession
| Modifier and Type | Method and Description |
|---|---|
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
|
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() |
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) |
void setSessionManager(SessionManager sessionManager)
sessionManager - SessionManager getSessionManager()
void setOperationManager(OperationManager operationManager)
operationManager - SessionHandle getSessionHandle()
java.lang.String getUsername()
java.lang.String getPassword()
HiveConf getHiveConf()
IMetaStoreClient getMetaStoreClient() throws HiveSQLException
HiveSQLExceptionGetInfoValue getInfo(GetInfoType getInfoType) throws HiveSQLException
getInfoType - HiveSQLExceptionOperationHandle executeStatement(java.lang.String statement, java.util.Map<java.lang.String,java.lang.String> confOverlay) throws HiveSQLException
statement - confOverlay - HiveSQLExceptionOperationHandle executeStatementAsync(java.lang.String statement, java.util.Map<java.lang.String,java.lang.String> confOverlay) throws HiveSQLException
statement - confOverlay - HiveSQLExceptionOperationHandle getTypeInfo() throws HiveSQLException
HiveSQLExceptionOperationHandle getCatalogs() throws HiveSQLException
HiveSQLExceptionOperationHandle getSchemas(java.lang.String catalogName, java.lang.String schemaName) throws HiveSQLException
catalogName - schemaName - HiveSQLExceptionOperationHandle getTables(java.lang.String catalogName, java.lang.String schemaName, java.lang.String tableName, java.util.List<java.lang.String> tableTypes) throws HiveSQLException
catalogName - schemaName - tableName - tableTypes - HiveSQLExceptionOperationHandle getTableTypes() throws HiveSQLException
HiveSQLExceptionOperationHandle getColumns(java.lang.String catalogName, java.lang.String schemaName, java.lang.String tableName, java.lang.String columnName) throws HiveSQLException
catalogName - schemaName - tableName - columnName - HiveSQLExceptionOperationHandle getFunctions(java.lang.String catalogName, java.lang.String schemaName, java.lang.String functionName) throws HiveSQLException
catalogName - schemaName - functionName - HiveSQLExceptionvoid close()
throws HiveSQLException
HiveSQLExceptionvoid cancelOperation(OperationHandle opHandle) throws HiveSQLException
HiveSQLExceptionvoid closeOperation(OperationHandle opHandle) throws HiveSQLException
HiveSQLExceptionTableSchema getResultSetMetadata(OperationHandle opHandle) throws HiveSQLException
HiveSQLExceptionRowSet fetchResults(OperationHandle opHandle, FetchOrientation orientation, long maxRows) throws HiveSQLException
HiveSQLExceptionRowSet fetchResults(OperationHandle opHandle) throws HiveSQLException
HiveSQLExceptionSessionState getSessionState()
java.lang.String getUserName()
void setUserName(java.lang.String userName)
Copyright © 2012 The Apache Software Foundation