public class EmbeddedCLIServiceClient extends CLIServiceClient
| Constructor and Description |
|---|
EmbeddedCLIServiceClient(ICLIService cliService) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelOperation(OperationHandle opHandle) |
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,
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 getInfoType) |
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) |
fetchResults, openSessionpublic EmbeddedCLIServiceClient(ICLIService cliService)
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 ICLIServiceopenSession in class CLIServiceClientHiveSQLExceptionpublic 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
HiveSQLExceptionpublic void closeSession(SessionHandle sessionHandle) throws HiveSQLException
closeSession in interface ICLIServicecloseSession in class CLIServiceClientHiveSQLExceptionpublic GetInfoValue getInfo(SessionHandle sessionHandle, GetInfoType getInfoType) throws HiveSQLException
getInfo in interface ICLIServicegetInfo in class CLIServiceClientHiveSQLExceptionpublic OperationHandle executeStatement(SessionHandle sessionHandle, java.lang.String statement, java.util.Map<java.lang.String,java.lang.String> confOverlay) throws HiveSQLException
executeStatement in interface ICLIServiceexecuteStatement in class CLIServiceClientHiveSQLExceptionpublic OperationHandle executeStatementAsync(SessionHandle sessionHandle, java.lang.String statement, java.util.Map<java.lang.String,java.lang.String> confOverlay) throws HiveSQLException
executeStatementAsync in interface ICLIServiceexecuteStatementAsync in class CLIServiceClientHiveSQLExceptionpublic OperationHandle getTypeInfo(SessionHandle sessionHandle) throws HiveSQLException
getTypeInfo in interface ICLIServicegetTypeInfo in class CLIServiceClientHiveSQLExceptionpublic OperationHandle getCatalogs(SessionHandle sessionHandle) throws HiveSQLException
getCatalogs in interface ICLIServicegetCatalogs in class CLIServiceClientHiveSQLExceptionpublic OperationHandle getSchemas(SessionHandle sessionHandle, java.lang.String catalogName, java.lang.String schemaName) throws HiveSQLException
getSchemas in interface ICLIServicegetSchemas in class CLIServiceClientHiveSQLExceptionpublic 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 ICLIServicegetTables in class CLIServiceClientHiveSQLExceptionpublic OperationHandle getTableTypes(SessionHandle sessionHandle) throws HiveSQLException
getTableTypes in interface ICLIServicegetTableTypes in class CLIServiceClientHiveSQLExceptionpublic 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 ICLIServicegetColumns in class CLIServiceClientHiveSQLExceptionpublic OperationHandle getFunctions(SessionHandle sessionHandle, java.lang.String catalogName, java.lang.String schemaName, java.lang.String functionName) throws HiveSQLException
getFunctions in interface ICLIServicegetFunctions in class CLIServiceClientHiveSQLExceptionpublic OperationState getOperationStatus(OperationHandle opHandle) throws HiveSQLException
getOperationStatus in interface ICLIServicegetOperationStatus in class CLIServiceClientHiveSQLExceptionpublic void cancelOperation(OperationHandle opHandle) throws HiveSQLException
cancelOperation in interface ICLIServicecancelOperation in class CLIServiceClientHiveSQLExceptionpublic void closeOperation(OperationHandle opHandle) throws HiveSQLException
closeOperation in interface ICLIServicecloseOperation in class CLIServiceClientHiveSQLExceptionpublic TableSchema getResultSetMetadata(OperationHandle opHandle) throws HiveSQLException
getResultSetMetadata in interface ICLIServicegetResultSetMetadata in class CLIServiceClientHiveSQLExceptionpublic RowSet fetchResults(OperationHandle opHandle, FetchOrientation orientation, long maxRows) throws HiveSQLException
fetchResults in interface ICLIServicefetchResults in class CLIServiceClientHiveSQLExceptionCopyright © 2012 The Apache Software Foundation