public static class EmbeddedThriftConnection.EmbeddedThriftCLIServiceClient
extends org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
Constructor and Description |
---|
EmbeddedThriftCLIServiceClient(org.apache.hive.service.rpc.thrift.TCLIService.Iface cliService) |
Modifier and Type | Method and Description |
---|---|
void |
cancelDelegationToken(org.apache.hive.service.cli.SessionHandle sessionHandle,
org.apache.hive.service.auth.HiveAuthFactory authFactory,
String tokenStr) |
void |
cancelOperation(org.apache.hive.service.cli.OperationHandle opHandle) |
void |
closeOperation(org.apache.hive.service.cli.OperationHandle opHandle) |
void |
closeSession(org.apache.hive.service.cli.SessionHandle sessionHandle) |
org.apache.hive.service.cli.OperationHandle |
executeStatement(org.apache.hive.service.cli.SessionHandle sessionHandle,
String statement,
Map<String,String> confOverlay) |
org.apache.hive.service.cli.OperationHandle |
executeStatementAsync(org.apache.hive.service.cli.SessionHandle sessionHandle,
String statement,
Map<String,String> confOverlay) |
org.apache.hive.service.cli.RowSet |
fetchResults(org.apache.hive.service.cli.OperationHandle opHandle) |
org.apache.hive.service.cli.RowSet |
fetchResults(org.apache.hive.service.cli.OperationHandle opHandle,
org.apache.hive.service.cli.FetchOrientation orientation,
long maxRows,
org.apache.hive.service.cli.FetchType fetchType) |
org.apache.hive.service.cli.OperationHandle |
getCatalogs(org.apache.hive.service.cli.SessionHandle sessionHandle) |
org.apache.hive.service.cli.OperationHandle |
getColumns(org.apache.hive.service.cli.SessionHandle sessionHandle,
String catalogName,
String schemaName,
String tableName,
String columnName) |
String |
getDelegationToken(org.apache.hive.service.cli.SessionHandle sessionHandle,
org.apache.hive.service.auth.HiveAuthFactory authFactory,
String owner,
String renewer) |
org.apache.hive.service.cli.OperationHandle |
getFunctions(org.apache.hive.service.cli.SessionHandle sessionHandle,
String catalogName,
String schemaName,
String functionName) |
org.apache.hive.service.cli.GetInfoValue |
getInfo(org.apache.hive.service.cli.SessionHandle sessionHandle,
org.apache.hive.service.cli.GetInfoType infoType) |
org.apache.hive.service.cli.TableSchema |
getResultSetMetadata(org.apache.hive.service.cli.OperationHandle opHandle) |
org.apache.hive.service.cli.OperationHandle |
getSchemas(org.apache.hive.service.cli.SessionHandle sessionHandle,
String catalogName,
String schemaName) |
org.apache.hive.service.cli.OperationHandle |
getTables(org.apache.hive.service.cli.SessionHandle sessionHandle,
String catalogName,
String schemaName,
String tableName,
List<String> tableTypes) |
org.apache.hive.service.cli.OperationHandle |
getTableTypes(org.apache.hive.service.cli.SessionHandle sessionHandle) |
org.apache.hive.service.cli.OperationHandle |
getTypeInfo(org.apache.hive.service.cli.SessionHandle sessionHandle) |
org.apache.hive.service.cli.SessionHandle |
openSession(String username,
String password) |
org.apache.hive.service.cli.SessionHandle |
openSession(String username,
String password,
Map<String,String> configuration) |
org.apache.hive.service.cli.SessionHandle |
openSessionWithImpersonation(String username,
String password,
Map<String,String> configuration,
String delegationToken) |
void |
renewDelegationToken(org.apache.hive.service.cli.SessionHandle sessionHandle,
org.apache.hive.service.auth.HiveAuthFactory authFactory,
String tokenStr) |
public EmbeddedThriftCLIServiceClient(org.apache.hive.service.rpc.thrift.TCLIService.Iface cliService)
public org.apache.hive.service.cli.SessionHandle openSession(String username, String password, Map<String,String> configuration) throws org.apache.hive.service.cli.HiveSQLException
openSession
in interface org.apache.hive.service.cli.ICLIService
openSession
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
public org.apache.hive.service.cli.SessionHandle openSessionWithImpersonation(String username, String password, Map<String,String> configuration, String delegationToken) throws org.apache.hive.service.cli.HiveSQLException
openSessionWithImpersonation
in interface org.apache.hive.service.cli.ICLIService
openSessionWithImpersonation
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
public void closeSession(org.apache.hive.service.cli.SessionHandle sessionHandle) throws org.apache.hive.service.cli.HiveSQLException
closeSession
in interface org.apache.hive.service.cli.ICLIService
closeSession
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
public org.apache.hive.service.cli.GetInfoValue getInfo(org.apache.hive.service.cli.SessionHandle sessionHandle, org.apache.hive.service.cli.GetInfoType infoType) throws org.apache.hive.service.cli.HiveSQLException
getInfo
in interface org.apache.hive.service.cli.ICLIService
getInfo
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
public org.apache.hive.service.cli.OperationHandle executeStatement(org.apache.hive.service.cli.SessionHandle sessionHandle, String statement, Map<String,String> confOverlay) throws org.apache.hive.service.cli.HiveSQLException
executeStatement
in interface org.apache.hive.service.cli.ICLIService
executeStatement
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
public org.apache.hive.service.cli.OperationHandle executeStatementAsync(org.apache.hive.service.cli.SessionHandle sessionHandle, String statement, Map<String,String> confOverlay) throws org.apache.hive.service.cli.HiveSQLException
executeStatementAsync
in interface org.apache.hive.service.cli.ICLIService
executeStatementAsync
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
public org.apache.hive.service.cli.OperationHandle getTypeInfo(org.apache.hive.service.cli.SessionHandle sessionHandle) throws org.apache.hive.service.cli.HiveSQLException
getTypeInfo
in interface org.apache.hive.service.cli.ICLIService
getTypeInfo
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
public org.apache.hive.service.cli.OperationHandle getCatalogs(org.apache.hive.service.cli.SessionHandle sessionHandle) throws org.apache.hive.service.cli.HiveSQLException
getCatalogs
in interface org.apache.hive.service.cli.ICLIService
getCatalogs
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
public org.apache.hive.service.cli.OperationHandle getSchemas(org.apache.hive.service.cli.SessionHandle sessionHandle, String catalogName, String schemaName) throws org.apache.hive.service.cli.HiveSQLException
getSchemas
in interface org.apache.hive.service.cli.ICLIService
getSchemas
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
public org.apache.hive.service.cli.OperationHandle getTables(org.apache.hive.service.cli.SessionHandle sessionHandle, String catalogName, String schemaName, String tableName, List<String> tableTypes) throws org.apache.hive.service.cli.HiveSQLException
getTables
in interface org.apache.hive.service.cli.ICLIService
getTables
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
public org.apache.hive.service.cli.OperationHandle getTableTypes(org.apache.hive.service.cli.SessionHandle sessionHandle) throws org.apache.hive.service.cli.HiveSQLException
getTableTypes
in interface org.apache.hive.service.cli.ICLIService
getTableTypes
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
public org.apache.hive.service.cli.OperationHandle getColumns(org.apache.hive.service.cli.SessionHandle sessionHandle, String catalogName, String schemaName, String tableName, String columnName) throws org.apache.hive.service.cli.HiveSQLException
getColumns
in interface org.apache.hive.service.cli.ICLIService
getColumns
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
public org.apache.hive.service.cli.OperationHandle getFunctions(org.apache.hive.service.cli.SessionHandle sessionHandle, String catalogName, String schemaName, String functionName) throws org.apache.hive.service.cli.HiveSQLException
getFunctions
in interface org.apache.hive.service.cli.ICLIService
getFunctions
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
public void cancelOperation(org.apache.hive.service.cli.OperationHandle opHandle) throws org.apache.hive.service.cli.HiveSQLException
cancelOperation
in interface org.apache.hive.service.cli.ICLIService
cancelOperation
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
public void closeOperation(org.apache.hive.service.cli.OperationHandle opHandle) throws org.apache.hive.service.cli.HiveSQLException
closeOperation
in interface org.apache.hive.service.cli.ICLIService
closeOperation
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
public org.apache.hive.service.cli.TableSchema getResultSetMetadata(org.apache.hive.service.cli.OperationHandle opHandle) throws org.apache.hive.service.cli.HiveSQLException
getResultSetMetadata
in interface org.apache.hive.service.cli.ICLIService
getResultSetMetadata
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
public org.apache.hive.service.cli.RowSet fetchResults(org.apache.hive.service.cli.OperationHandle opHandle) throws org.apache.hive.service.cli.HiveSQLException
fetchResults
in interface org.apache.hive.service.cli.ICLIService
fetchResults
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
public org.apache.hive.service.cli.RowSet fetchResults(org.apache.hive.service.cli.OperationHandle opHandle, org.apache.hive.service.cli.FetchOrientation orientation, long maxRows, org.apache.hive.service.cli.FetchType fetchType) throws org.apache.hive.service.cli.HiveSQLException
fetchResults
in interface org.apache.hive.service.cli.ICLIService
fetchResults
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
public String getDelegationToken(org.apache.hive.service.cli.SessionHandle sessionHandle, org.apache.hive.service.auth.HiveAuthFactory authFactory, String owner, String renewer) throws org.apache.hive.service.cli.HiveSQLException
getDelegationToken
in interface org.apache.hive.service.cli.ICLIService
getDelegationToken
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
public void cancelDelegationToken(org.apache.hive.service.cli.SessionHandle sessionHandle, org.apache.hive.service.auth.HiveAuthFactory authFactory, String tokenStr) throws org.apache.hive.service.cli.HiveSQLException
cancelDelegationToken
in interface org.apache.hive.service.cli.ICLIService
cancelDelegationToken
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
public void renewDelegationToken(org.apache.hive.service.cli.SessionHandle sessionHandle, org.apache.hive.service.auth.HiveAuthFactory authFactory, String tokenStr) throws org.apache.hive.service.cli.HiveSQLException
renewDelegationToken
in interface org.apache.hive.service.cli.ICLIService
renewDelegationToken
in class org.apache.hive.service.cli.thrift.ThriftCLIServiceClient
org.apache.hive.service.cli.HiveSQLException
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.