|
||||||||||
| 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 HiveSessionpublic void setOperationManager(OperationManager operationManager)
HiveSession
setOperationManager in interface HiveSession
protected void acquire()
throws HiveSQLException
HiveSQLExceptionprotected void release()
public SessionHandle getSessionHandle()
getSessionHandle in interface HiveSessionpublic String getUsername()
getUsername in interface HiveSessionpublic String getPassword()
getPassword in interface HiveSessionpublic HiveConf getHiveConf()
getHiveConf in interface HiveSession
public IMetaStoreClient getMetaStoreClient()
throws HiveSQLException
getMetaStoreClient in interface HiveSessionHiveSQLException
public GetInfoValue getInfo(GetInfoType getInfoType)
throws HiveSQLException
HiveSession
getInfo in interface HiveSessionHiveSQLException
public OperationHandle executeStatement(String statement,
Map<String,String> confOverlay)
throws HiveSQLException
HiveSession
executeStatement in interface HiveSessionHiveSQLException
public OperationHandle getTypeInfo()
throws HiveSQLException
HiveSession
getTypeInfo in interface HiveSessionHiveSQLException
public OperationHandle getCatalogs()
throws HiveSQLException
HiveSession
getCatalogs in interface HiveSessionHiveSQLException
public OperationHandle getSchemas(String catalogName,
String schemaName)
throws HiveSQLException
HiveSession
getSchemas in interface HiveSessionHiveSQLException
public OperationHandle getTables(String catalogName,
String schemaName,
String tableName,
List<String> tableTypes)
throws HiveSQLException
HiveSession
getTables in interface HiveSessionHiveSQLException
public OperationHandle getTableTypes()
throws HiveSQLException
HiveSession
getTableTypes in interface HiveSessionHiveSQLException
public OperationHandle getColumns(String catalogName,
String schemaName,
String tableName,
String columnName)
throws HiveSQLException
HiveSession
getColumns in interface HiveSessionHiveSQLException
public OperationHandle getFunctions(String catalogName,
String schemaName,
String functionName)
throws HiveSQLException
HiveSession
getFunctions in interface HiveSessionHiveSQLException
public void close()
throws HiveSQLException
HiveSession
close in interface HiveSessionHiveSQLExceptionpublic SessionState getSessionState()
getSessionState in interface HiveSessionpublic String getUserName()
getUserName in interface HiveSessionpublic void setUserName(String userName)
setUserName in interface HiveSession
public void cancelOperation(OperationHandle opHandle)
throws HiveSQLException
cancelOperation in interface HiveSessionHiveSQLException
public void closeOperation(OperationHandle opHandle)
throws HiveSQLException
closeOperation in interface HiveSessionHiveSQLException
public TableSchema getResultSetMetadata(OperationHandle opHandle)
throws HiveSQLException
getResultSetMetadata in interface HiveSessionHiveSQLException
public RowSet fetchResults(OperationHandle opHandle,
FetchOrientation orientation,
long maxRows)
throws HiveSQLException
fetchResults in interface HiveSessionHiveSQLException
public RowSet fetchResults(OperationHandle opHandle)
throws HiveSQLException
fetchResults in interface HiveSessionHiveSQLExceptionprotected HiveSession getSession()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||