org.apache.hive.service.cli.session
Interface HiveSession

All Known Implementing Classes:
HiveSessionImpl, HiveSessionImplwithUGI

public interface HiveSession


Method Summary
 void cancelOperation(OperationHandle opHandle)
           
 void close()
          close the session
 void closeOperation(OperationHandle opHandle)
           
 OperationHandle executeStatement(String statement, Map<String,String> confOverlay)
          execute operation handler
 RowSet fetchResults(OperationHandle opHandle)
           
 RowSet fetchResults(OperationHandle opHandle, FetchOrientation orientation, long maxRows)
           
 OperationHandle getCatalogs()
          getCatalogs operation handler
 OperationHandle getColumns(String catalogName, String schemaName, String tableName, String columnName)
          getColumns operation handler
 OperationHandle getFunctions(String catalogName, String schemaName, String functionName)
          getFunctions operation handler
 HiveConf getHiveConf()
           
 GetInfoValue getInfo(GetInfoType getInfoType)
          getInfo operation handler
 IMetaStoreClient getMetaStoreClient()
           
 String getPassword()
           
 TableSchema getResultSetMetadata(OperationHandle opHandle)
           
 OperationHandle getSchemas(String catalogName, String schemaName)
          getSchemas operation handler
 SessionHandle getSessionHandle()
           
 SessionState getSessionState()
           
 OperationHandle getTables(String catalogName, String schemaName, String tableName, List<String> tableTypes)
          getTables operation handler
 OperationHandle getTableTypes()
          getTableTypes operation handler
 OperationHandle getTypeInfo()
          getTypeInfo operation handler
 String getUsername()
           
 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(String userName)
           
 

Method Detail

setSessionManager

void setSessionManager(SessionManager sessionManager)
Set the session manager for the session

Parameters:
sessionManager -

setOperationManager

void setOperationManager(OperationManager operationManager)
Set operation manager for the session

Parameters:
operationManager -

getSessionHandle

SessionHandle getSessionHandle()

getUsername

String getUsername()

getPassword

String getPassword()

getHiveConf

HiveConf getHiveConf()

getMetaStoreClient

IMetaStoreClient getMetaStoreClient()
                                    throws HiveSQLException
Throws:
HiveSQLException

getInfo

GetInfoValue getInfo(GetInfoType getInfoType)
                     throws HiveSQLException
getInfo operation handler

Parameters:
getInfoType -
Returns:
Throws:
HiveSQLException

executeStatement

OperationHandle executeStatement(String statement,
                                 Map<String,String> confOverlay)
                                 throws HiveSQLException
execute operation handler

Parameters:
statement -
confOverlay -
Returns:
Throws:
HiveSQLException

getTypeInfo

OperationHandle getTypeInfo()
                            throws HiveSQLException
getTypeInfo operation handler

Returns:
Throws:
HiveSQLException

getCatalogs

OperationHandle getCatalogs()
                            throws HiveSQLException
getCatalogs operation handler

Returns:
Throws:
HiveSQLException

getSchemas

OperationHandle getSchemas(String catalogName,
                           String schemaName)
                           throws HiveSQLException
getSchemas operation handler

Parameters:
catalogName -
schemaName -
Returns:
Throws:
HiveSQLException

getTables

OperationHandle getTables(String catalogName,
                          String schemaName,
                          String tableName,
                          List<String> tableTypes)
                          throws HiveSQLException
getTables operation handler

Parameters:
catalogName -
schemaName -
tableName -
tableTypes -
Returns:
Throws:
HiveSQLException

getTableTypes

OperationHandle getTableTypes()
                              throws HiveSQLException
getTableTypes operation handler

Returns:
Throws:
HiveSQLException

getColumns

OperationHandle getColumns(String catalogName,
                           String schemaName,
                           String tableName,
                           String columnName)
                           throws HiveSQLException
getColumns operation handler

Parameters:
catalogName -
schemaName -
tableName -
columnName -
Returns:
Throws:
HiveSQLException

getFunctions

OperationHandle getFunctions(String catalogName,
                             String schemaName,
                             String functionName)
                             throws HiveSQLException
getFunctions operation handler

Parameters:
catalogName -
schemaName -
functionName -
Returns:
Throws:
HiveSQLException

close

void close()
           throws HiveSQLException
close the session

Throws:
HiveSQLException

cancelOperation

void cancelOperation(OperationHandle opHandle)
                     throws HiveSQLException
Throws:
HiveSQLException

closeOperation

void closeOperation(OperationHandle opHandle)
                    throws HiveSQLException
Throws:
HiveSQLException

getResultSetMetadata

TableSchema getResultSetMetadata(OperationHandle opHandle)
                                 throws HiveSQLException
Throws:
HiveSQLException

fetchResults

RowSet fetchResults(OperationHandle opHandle,
                    FetchOrientation orientation,
                    long maxRows)
                    throws HiveSQLException
Throws:
HiveSQLException

fetchResults

RowSet fetchResults(OperationHandle opHandle)
                    throws HiveSQLException
Throws:
HiveSQLException

getSessionState

SessionState getSessionState()

getUserName

String getUserName()

setUserName

void setUserName(String userName)


Copyright © 2012 The Apache Software Foundation