|
||||||||||
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
public class HiveSessionImpl
HiveSession
Constructor Summary | |
---|---|
HiveSessionImpl(String username,
String password,
Map<String,String> sessionConf)
|
Method Summary | |
---|---|
protected void |
acquire()
|
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 |
protected HiveSession |
getSession()
|
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()
|
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(String userName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HiveSessionImpl(String username, String password, Map<String,String> sessionConf)
Method Detail |
---|
public void setSessionManager(SessionManager sessionManager)
HiveSession
setSessionManager
in interface HiveSession
public void setOperationManager(OperationManager operationManager)
HiveSession
setOperationManager
in interface HiveSession
protected void acquire() throws HiveSQLException
HiveSQLException
protected void release()
public SessionHandle getSessionHandle()
getSessionHandle
in interface HiveSession
public String getUsername()
getUsername
in interface HiveSession
public String getPassword()
getPassword
in interface HiveSession
public HiveConf getHiveConf()
getHiveConf
in interface HiveSession
public IMetaStoreClient getMetaStoreClient() throws HiveSQLException
getMetaStoreClient
in interface HiveSession
HiveSQLException
public GetInfoValue getInfo(GetInfoType getInfoType) throws HiveSQLException
HiveSession
getInfo
in interface HiveSession
HiveSQLException
public OperationHandle executeStatement(String statement, Map<String,String> confOverlay) throws HiveSQLException
HiveSession
executeStatement
in interface HiveSession
HiveSQLException
public OperationHandle getTypeInfo() throws HiveSQLException
HiveSession
getTypeInfo
in interface HiveSession
HiveSQLException
public OperationHandle getCatalogs() throws HiveSQLException
HiveSession
getCatalogs
in interface HiveSession
HiveSQLException
public OperationHandle getSchemas(String catalogName, String schemaName) throws HiveSQLException
HiveSession
getSchemas
in interface HiveSession
HiveSQLException
public OperationHandle getTables(String catalogName, String schemaName, String tableName, List<String> tableTypes) throws HiveSQLException
HiveSession
getTables
in interface HiveSession
HiveSQLException
public OperationHandle getTableTypes() throws HiveSQLException
HiveSession
getTableTypes
in interface HiveSession
HiveSQLException
public OperationHandle getColumns(String catalogName, String schemaName, String tableName, String columnName) throws HiveSQLException
HiveSession
getColumns
in interface HiveSession
HiveSQLException
public OperationHandle getFunctions(String catalogName, String schemaName, String functionName) throws HiveSQLException
HiveSession
getFunctions
in interface HiveSession
HiveSQLException
public void close() throws HiveSQLException
HiveSession
close
in interface HiveSession
HiveSQLException
public SessionState getSessionState()
getSessionState
in interface HiveSession
public String getUserName()
getUserName
in interface HiveSession
public void setUserName(String userName)
setUserName
in interface HiveSession
public void cancelOperation(OperationHandle opHandle) throws HiveSQLException
cancelOperation
in interface HiveSession
HiveSQLException
public void closeOperation(OperationHandle opHandle) throws HiveSQLException
closeOperation
in interface HiveSession
HiveSQLException
public TableSchema getResultSetMetadata(OperationHandle opHandle) throws HiveSQLException
getResultSetMetadata
in interface HiveSession
HiveSQLException
public RowSet fetchResults(OperationHandle opHandle, FetchOrientation orientation, long maxRows) throws HiveSQLException
fetchResults
in interface HiveSession
HiveSQLException
public RowSet fetchResults(OperationHandle opHandle) throws HiveSQLException
fetchResults
in interface HiveSession
HiveSQLException
protected HiveSession getSession()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |