public class ThriftCLIServiceClient extends CLIServiceClient
Constructor and Description |
---|
ThriftCLIServiceClient(TCLIService.Iface cliService) |
Modifier and Type | Method and Description |
---|---|
void |
cancelOperation(OperationHandle opHandle) |
void |
checkStatus(TStatus status) |
void |
closeOperation(OperationHandle opHandle) |
void |
closeSession(SessionHandle sessionHandle) |
OperationHandle |
executeStatement(SessionHandle sessionHandle,
java.lang.String statement,
java.util.Map<java.lang.String,java.lang.String> confOverlay) |
OperationHandle |
executeStatementAsync(SessionHandle sessionHandle,
java.lang.String statement,
java.util.Map<java.lang.String,java.lang.String> confOverlay) |
RowSet |
fetchResults(OperationHandle opHandle) |
RowSet |
fetchResults(OperationHandle opHandle,
FetchOrientation orientation,
long maxRows) |
OperationHandle |
getCatalogs(SessionHandle sessionHandle) |
OperationHandle |
getColumns(SessionHandle sessionHandle,
java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName,
java.lang.String columnName) |
OperationHandle |
getFunctions(SessionHandle sessionHandle,
java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String functionName) |
GetInfoValue |
getInfo(SessionHandle sessionHandle,
GetInfoType infoType) |
OperationState |
getOperationStatus(OperationHandle opHandle) |
TableSchema |
getResultSetMetadata(OperationHandle opHandle) |
OperationHandle |
getSchemas(SessionHandle sessionHandle,
java.lang.String catalogName,
java.lang.String schemaName) |
OperationHandle |
getTables(SessionHandle sessionHandle,
java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName,
java.util.List<java.lang.String> tableTypes) |
OperationHandle |
getTableTypes(SessionHandle sessionHandle) |
OperationHandle |
getTypeInfo(SessionHandle sessionHandle) |
SessionHandle |
openSession(java.lang.String username,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String> configuration) |
SessionHandle |
openSessionWithImpersonation(java.lang.String username,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String> configuration,
java.lang.String delegationToken) |
openSession
public ThriftCLIServiceClient(TCLIService.Iface cliService)
public void checkStatus(TStatus status) throws HiveSQLException
HiveSQLException
public SessionHandle openSession(java.lang.String username, java.lang.String password, java.util.Map<java.lang.String,java.lang.String> configuration) throws HiveSQLException
openSession
in interface ICLIService
openSession
in class CLIServiceClient
HiveSQLException
public SessionHandle openSessionWithImpersonation(java.lang.String username, java.lang.String password, java.util.Map<java.lang.String,java.lang.String> configuration, java.lang.String delegationToken) throws HiveSQLException
HiveSQLException
public void closeSession(SessionHandle sessionHandle) throws HiveSQLException
closeSession
in interface ICLIService
closeSession
in class CLIServiceClient
HiveSQLException
public GetInfoValue getInfo(SessionHandle sessionHandle, GetInfoType infoType) throws HiveSQLException
getInfo
in interface ICLIService
getInfo
in class CLIServiceClient
HiveSQLException
public OperationHandle executeStatement(SessionHandle sessionHandle, java.lang.String statement, java.util.Map<java.lang.String,java.lang.String> confOverlay) throws HiveSQLException
executeStatement
in interface ICLIService
executeStatement
in class CLIServiceClient
HiveSQLException
public OperationHandle executeStatementAsync(SessionHandle sessionHandle, java.lang.String statement, java.util.Map<java.lang.String,java.lang.String> confOverlay) throws HiveSQLException
executeStatementAsync
in interface ICLIService
executeStatementAsync
in class CLIServiceClient
HiveSQLException
public OperationHandle getTypeInfo(SessionHandle sessionHandle) throws HiveSQLException
getTypeInfo
in interface ICLIService
getTypeInfo
in class CLIServiceClient
HiveSQLException
public OperationHandle getCatalogs(SessionHandle sessionHandle) throws HiveSQLException
getCatalogs
in interface ICLIService
getCatalogs
in class CLIServiceClient
HiveSQLException
public OperationHandle getSchemas(SessionHandle sessionHandle, java.lang.String catalogName, java.lang.String schemaName) throws HiveSQLException
getSchemas
in interface ICLIService
getSchemas
in class CLIServiceClient
HiveSQLException
public OperationHandle getTables(SessionHandle sessionHandle, java.lang.String catalogName, java.lang.String schemaName, java.lang.String tableName, java.util.List<java.lang.String> tableTypes) throws HiveSQLException
getTables
in interface ICLIService
getTables
in class CLIServiceClient
HiveSQLException
public OperationHandle getTableTypes(SessionHandle sessionHandle) throws HiveSQLException
getTableTypes
in interface ICLIService
getTableTypes
in class CLIServiceClient
HiveSQLException
public OperationHandle getColumns(SessionHandle sessionHandle, java.lang.String catalogName, java.lang.String schemaName, java.lang.String tableName, java.lang.String columnName) throws HiveSQLException
getColumns
in interface ICLIService
getColumns
in class CLIServiceClient
HiveSQLException
public OperationHandle getFunctions(SessionHandle sessionHandle, java.lang.String catalogName, java.lang.String schemaName, java.lang.String functionName) throws HiveSQLException
getFunctions
in interface ICLIService
getFunctions
in class CLIServiceClient
HiveSQLException
public OperationState getOperationStatus(OperationHandle opHandle) throws HiveSQLException
getOperationStatus
in interface ICLIService
getOperationStatus
in class CLIServiceClient
HiveSQLException
public void cancelOperation(OperationHandle opHandle) throws HiveSQLException
cancelOperation
in interface ICLIService
cancelOperation
in class CLIServiceClient
HiveSQLException
public void closeOperation(OperationHandle opHandle) throws HiveSQLException
closeOperation
in interface ICLIService
closeOperation
in class CLIServiceClient
HiveSQLException
public TableSchema getResultSetMetadata(OperationHandle opHandle) throws HiveSQLException
getResultSetMetadata
in interface ICLIService
getResultSetMetadata
in class CLIServiceClient
HiveSQLException
public RowSet fetchResults(OperationHandle opHandle, FetchOrientation orientation, long maxRows) throws HiveSQLException
fetchResults
in interface ICLIService
fetchResults
in class CLIServiceClient
HiveSQLException
public RowSet fetchResults(OperationHandle opHandle) throws HiveSQLException
fetchResults
in interface ICLIService
fetchResults
in class CLIServiceClient
HiveSQLException
Copyright © 2012 The Apache Software Foundation