public class ThriftCLIServiceClient extends CLIServiceClient
Constructor and Description |
---|
ThriftCLIServiceClient(TCLIService.Iface cliService) |
openSession
public ThriftCLIServiceClient(TCLIService.Iface cliService)
public void checkStatus(TStatus status) throws HiveSQLException
HiveSQLException
public SessionHandle openSession(String username, String password, Map<String,String> configuration) throws HiveSQLException
HiveSQLException
public SessionHandle openSessionWithImpersonation(String username, String password, Map<String,String> configuration, String delegationToken) throws HiveSQLException
HiveSQLException
public void closeSession(SessionHandle sessionHandle) throws HiveSQLException
HiveSQLException
public GetInfoValue getInfo(SessionHandle sessionHandle, GetInfoType infoType) throws HiveSQLException
HiveSQLException
public OperationHandle executeStatement(SessionHandle sessionHandle, String statement, Map<String,String> confOverlay) throws HiveSQLException
HiveSQLException
public OperationHandle executeStatementAsync(SessionHandle sessionHandle, String statement, Map<String,String> confOverlay) throws HiveSQLException
HiveSQLException
public OperationHandle getTypeInfo(SessionHandle sessionHandle) throws HiveSQLException
HiveSQLException
public OperationHandle getCatalogs(SessionHandle sessionHandle) throws HiveSQLException
HiveSQLException
public OperationHandle getSchemas(SessionHandle sessionHandle, String catalogName, String schemaName) throws HiveSQLException
HiveSQLException
public OperationHandle getTables(SessionHandle sessionHandle, String catalogName, String schemaName, String tableName, List<String> tableTypes) throws HiveSQLException
HiveSQLException
public OperationHandle getTableTypes(SessionHandle sessionHandle) throws HiveSQLException
HiveSQLException
public OperationHandle getColumns(SessionHandle sessionHandle, String catalogName, String schemaName, String tableName, String columnName) throws HiveSQLException
HiveSQLException
public OperationHandle getFunctions(SessionHandle sessionHandle, String catalogName, String schemaName, String functionName) throws HiveSQLException
HiveSQLException
public OperationStatus getOperationStatus(OperationHandle opHandle) throws HiveSQLException
HiveSQLException
public void cancelOperation(OperationHandle opHandle) throws HiveSQLException
HiveSQLException
public void closeOperation(OperationHandle opHandle) throws HiveSQLException
HiveSQLException
public TableSchema getResultSetMetadata(OperationHandle opHandle) throws HiveSQLException
HiveSQLException
public RowSet fetchResults(OperationHandle opHandle, FetchOrientation orientation, long maxRows, FetchType fetchType) throws HiveSQLException
HiveSQLException
public RowSet fetchResults(OperationHandle opHandle) throws HiveSQLException
fetchResults
in interface ICLIService
fetchResults
in class CLIServiceClient
HiveSQLException
public String getDelegationToken(SessionHandle sessionHandle, HiveAuthFactory authFactory, String owner, String renewer) throws HiveSQLException
getDelegationToken
in interface ICLIService
getDelegationToken
in class CLIServiceClient
HiveSQLException
public void cancelDelegationToken(SessionHandle sessionHandle, HiveAuthFactory authFactory, String tokenStr) throws HiveSQLException
cancelDelegationToken
in interface ICLIService
cancelDelegationToken
in class CLIServiceClient
HiveSQLException
public void renewDelegationToken(SessionHandle sessionHandle, HiveAuthFactory authFactory, String tokenStr) throws HiveSQLException
renewDelegationToken
in interface ICLIService
renewDelegationToken
in class CLIServiceClient
HiveSQLException
Copyright © 2017 The Apache Software Foundation. All rights reserved.