public class OperationManager extends AbstractService
Service.STATE| Constructor and Description |
|---|
OperationManager() |
getHiveConf, getName, getServiceState, getStartTime, register, setHiveConf, unregisterpublic void init(HiveConf hiveConf)
AbstractServiceService.STATE.NOTINITED to Service.STATE.INITED unless the
operation failed and an exception was raised.init in interface Serviceinit in class AbstractServicepublic void start()
AbstractServiceService.STATE.INITED to Service.STATE.STARTED unless the
operation failed and an exception was raised.start in interface Servicestart in class AbstractServicepublic void stop()
AbstractServicestop in interface Servicestop in class AbstractServicepublic ExecuteStatementOperation newExecuteStatementOperation(HiveSession parentSession, String statement, Map<String,String> confOverlay, boolean runAsync, long queryTimeout) throws HiveSQLException
HiveSQLExceptionpublic GetTypeInfoOperation newGetTypeInfoOperation(HiveSession parentSession)
public GetCatalogsOperation newGetCatalogsOperation(HiveSession parentSession)
public GetSchemasOperation newGetSchemasOperation(HiveSession parentSession, String catalogName, String schemaName)
public MetadataOperation newGetTablesOperation(HiveSession parentSession, String catalogName, String schemaName, String tableName, List<String> tableTypes)
public GetTableTypesOperation newGetTableTypesOperation(HiveSession parentSession)
public GetColumnsOperation newGetColumnsOperation(HiveSession parentSession, String catalogName, String schemaName, String tableName, String columnName)
public GetFunctionsOperation newGetFunctionsOperation(HiveSession parentSession, String catalogName, String schemaName, String functionName)
public GetPrimaryKeysOperation newGetPrimaryKeysOperation(HiveSession parentSession, String catalogName, String schemaName, String tableName)
public GetCrossReferenceOperation newGetCrossReferenceOperation(HiveSession session, String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable)
public Operation getOperation(OperationHandle operationHandle) throws HiveSQLException
HiveSQLExceptionpublic OperationStatus getOperationStatus(OperationHandle opHandle) throws HiveSQLException
HiveSQLExceptionpublic void cancelOperation(OperationHandle opHandle, String errMsg) throws HiveSQLException
opHandle - operation handleerrMsg - error messageHiveSQLExceptionpublic void cancelOperation(OperationHandle opHandle) throws HiveSQLException
opHandle - HiveSQLExceptionpublic void closeOperation(OperationHandle opHandle) throws HiveSQLException
HiveSQLExceptionpublic TableSchema getOperationResultSetSchema(OperationHandle opHandle) throws HiveSQLException
HiveSQLExceptionpublic RowSet getOperationNextRowSet(OperationHandle opHandle, FetchOrientation orientation, long maxRows) throws HiveSQLException
HiveSQLExceptionpublic RowSet getOperationLogRowSet(OperationHandle opHandle, FetchOrientation orientation, long maxRows, HiveConf hConf) throws HiveSQLException
HiveSQLExceptionpublic Collection<Operation> getOperations()
public List<Operation> removeExpiredOperations(OperationHandle[] handles)
public List<QueryInfo> getHistoricalQueryInfos()
public List<QueryInfo> getLiveQueryInfos()
public QueryInfo getQueryInfo(String handle)
handle - handle of SQLOperation.Copyright © 2019 The Apache Software Foundation. All Rights Reserved.