public class ThriftCLIServiceClient extends CLIServiceClient
defaultFetchRows| Constructor and Description |
|---|
ThriftCLIServiceClient(org.apache.hive.service.rpc.thrift.TCLIService.Iface cliService) |
ThriftCLIServiceClient(org.apache.hive.service.rpc.thrift.TCLIService.Iface cliService,
org.apache.hadoop.conf.Configuration conf) |
openSessionpublic ThriftCLIServiceClient(org.apache.hive.service.rpc.thrift.TCLIService.Iface cliService,
org.apache.hadoop.conf.Configuration conf)
public ThriftCLIServiceClient(org.apache.hive.service.rpc.thrift.TCLIService.Iface cliService)
public void checkStatus(org.apache.hive.service.rpc.thrift.TStatus status)
throws HiveSQLException
HiveSQLExceptionpublic SessionHandle openSession(String username, String password, Map<String,String> configuration) throws HiveSQLException
HiveSQLExceptionpublic SessionHandle openSessionWithImpersonation(String username, String password, Map<String,String> configuration, String delegationToken) throws HiveSQLException
HiveSQLExceptionpublic void closeSession(SessionHandle sessionHandle) throws HiveSQLException
HiveSQLExceptionpublic GetInfoValue getInfo(SessionHandle sessionHandle, GetInfoType infoType) throws HiveSQLException
HiveSQLExceptionpublic OperationHandle executeStatement(SessionHandle sessionHandle, String statement, Map<String,String> confOverlay) throws HiveSQLException
HiveSQLExceptionpublic OperationHandle executeStatement(SessionHandle sessionHandle, String statement, Map<String,String> confOverlay, long queryTimeout) throws HiveSQLException
HiveSQLExceptionpublic OperationHandle executeStatementAsync(SessionHandle sessionHandle, String statement, Map<String,String> confOverlay) throws HiveSQLException
HiveSQLExceptionpublic OperationHandle executeStatementAsync(SessionHandle sessionHandle, String statement, Map<String,String> confOverlay, long queryTimeout) throws HiveSQLException
HiveSQLExceptionpublic OperationHandle getTypeInfo(SessionHandle sessionHandle) throws HiveSQLException
HiveSQLExceptionpublic OperationHandle getCatalogs(SessionHandle sessionHandle) throws HiveSQLException
HiveSQLExceptionpublic OperationHandle getSchemas(SessionHandle sessionHandle, String catalogName, String schemaName) throws HiveSQLException
HiveSQLExceptionpublic OperationHandle getTables(SessionHandle sessionHandle, String catalogName, String schemaName, String tableName, List<String> tableTypes) throws HiveSQLException
HiveSQLExceptionpublic OperationHandle getTableTypes(SessionHandle sessionHandle) throws HiveSQLException
HiveSQLExceptionpublic OperationHandle getColumns(SessionHandle sessionHandle, String catalogName, String schemaName, String tableName, String columnName) throws HiveSQLException
HiveSQLExceptionpublic OperationHandle getFunctions(SessionHandle sessionHandle, String catalogName, String schemaName, String functionName) throws HiveSQLException
HiveSQLExceptionpublic OperationStatus getOperationStatus(OperationHandle opHandle, boolean getProgressUpdate) throws HiveSQLException
HiveSQLExceptionpublic void cancelOperation(OperationHandle opHandle) throws HiveSQLException
HiveSQLExceptionpublic void closeOperation(OperationHandle opHandle) throws HiveSQLException
HiveSQLExceptionpublic TableSchema getResultSetMetadata(OperationHandle opHandle) throws HiveSQLException
HiveSQLExceptionpublic RowSet fetchResults(OperationHandle opHandle, FetchOrientation orientation, long maxRows, FetchType fetchType) throws HiveSQLException
HiveSQLExceptionpublic RowSet fetchResults(OperationHandle opHandle) throws HiveSQLException
fetchResults in interface ICLIServicefetchResults in class CLIServiceClientHiveSQLExceptionpublic String getDelegationToken(SessionHandle sessionHandle, HiveAuthFactory authFactory, String owner, String renewer) throws HiveSQLException
getDelegationToken in interface ICLIServicegetDelegationToken in class CLIServiceClientHiveSQLExceptionpublic void cancelDelegationToken(SessionHandle sessionHandle, HiveAuthFactory authFactory, String tokenStr) throws HiveSQLException
cancelDelegationToken in interface ICLIServicecancelDelegationToken in class CLIServiceClientHiveSQLExceptionpublic void renewDelegationToken(SessionHandle sessionHandle, HiveAuthFactory authFactory, String tokenStr) throws HiveSQLException
renewDelegationToken in interface ICLIServicerenewDelegationToken in class CLIServiceClientHiveSQLExceptionpublic OperationHandle getPrimaryKeys(SessionHandle sessionHandle, String catalog, String schema, String table) throws HiveSQLException
HiveSQLExceptionpublic OperationHandle getCrossReference(SessionHandle sessionHandle, String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable) throws HiveSQLException
HiveSQLExceptionpublic String getQueryId(org.apache.hive.service.rpc.thrift.TOperationHandle operationHandle) throws HiveSQLException
HiveSQLExceptionpublic void setApplicationName(SessionHandle sh, String value) throws HiveSQLException
HiveSQLExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.