org.apache.hive.service.cli.operation
Class OperationManager
java.lang.Object
org.apache.hive.service.AbstractService
org.apache.hive.service.cli.operation.OperationManager
- All Implemented Interfaces:
- Service
public class OperationManager
- extends AbstractService
OperationManager.
Method Summary |
void |
cancelOperation(OperationHandle opHandle)
|
void |
closeOperation(OperationHandle opHandle)
|
Operation |
getOperation(OperationHandle operationHandle)
|
RowSet |
getOperationNextRowSet(OperationHandle opHandle)
|
RowSet |
getOperationNextRowSet(OperationHandle opHandle,
FetchOrientation orientation,
long maxRows)
|
TableSchema |
getOperationResultSetSchema(OperationHandle opHandle)
|
OperationState |
getOperationState(OperationHandle opHandle)
|
void |
init(HiveConf hiveConf)
Initialize the service. |
ExecuteStatementOperation |
newExecuteStatementOperation(HiveSession parentSession,
String statement,
Map<String,String> confOverlay)
|
GetCatalogsOperation |
newGetCatalogsOperation(HiveSession parentSession)
|
GetColumnsOperation |
newGetColumnsOperation(HiveSession parentSession,
String catalogName,
String schemaName,
String tableName,
String columnName)
|
GetFunctionsOperation |
newGetFunctionsOperation(HiveSession parentSession,
String catalogName,
String schemaName,
String functionName)
|
GetSchemasOperation |
newGetSchemasOperation(HiveSession parentSession,
String catalogName,
String schemaName)
|
MetadataOperation |
newGetTablesOperation(HiveSession parentSession,
String catalogName,
String schemaName,
String tableName,
List<String> tableTypes)
|
GetTableTypesOperation |
newGetTableTypesOperation(HiveSession parentSession)
|
GetTypeInfoOperation |
newGetTypeInfoOperation(HiveSession parentSession)
|
void |
start()
Start the service. |
void |
stop()
Stop the service. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OperationManager
public OperationManager()
init
public void init(HiveConf hiveConf)
- Description copied from class:
AbstractService
- Initialize the service.
The transition must be from
Service.STATE.NOTINITED
to Service.STATE.INITED
unless the
operation failed and an exception was raised.
- Specified by:
init
in interface Service
- Overrides:
init
in class AbstractService
start
public void start()
- Description copied from class:
AbstractService
- Start the service.
The transition should be from
Service.STATE.INITED
to Service.STATE.STARTED
unless the
operation failed and an exception was raised.
- Specified by:
start
in interface Service
- Overrides:
start
in class AbstractService
stop
public void stop()
- Description copied from class:
AbstractService
- Stop the service.
This operation must be designed to complete regardless of the initial state
of the service, including the state of all its internal fields.
- Specified by:
stop
in interface Service
- Overrides:
stop
in class AbstractService
newExecuteStatementOperation
public ExecuteStatementOperation newExecuteStatementOperation(HiveSession parentSession,
String statement,
Map<String,String> confOverlay)
newGetTypeInfoOperation
public GetTypeInfoOperation newGetTypeInfoOperation(HiveSession parentSession)
newGetCatalogsOperation
public GetCatalogsOperation newGetCatalogsOperation(HiveSession parentSession)
newGetSchemasOperation
public GetSchemasOperation newGetSchemasOperation(HiveSession parentSession,
String catalogName,
String schemaName)
newGetTablesOperation
public MetadataOperation newGetTablesOperation(HiveSession parentSession,
String catalogName,
String schemaName,
String tableName,
List<String> tableTypes)
newGetTableTypesOperation
public GetTableTypesOperation newGetTableTypesOperation(HiveSession parentSession)
newGetColumnsOperation
public GetColumnsOperation newGetColumnsOperation(HiveSession parentSession,
String catalogName,
String schemaName,
String tableName,
String columnName)
newGetFunctionsOperation
public GetFunctionsOperation newGetFunctionsOperation(HiveSession parentSession,
String catalogName,
String schemaName,
String functionName)
getOperation
public Operation getOperation(OperationHandle operationHandle)
throws HiveSQLException
- Throws:
HiveSQLException
getOperationState
public OperationState getOperationState(OperationHandle opHandle)
throws HiveSQLException
- Throws:
HiveSQLException
cancelOperation
public void cancelOperation(OperationHandle opHandle)
throws HiveSQLException
- Throws:
HiveSQLException
closeOperation
public void closeOperation(OperationHandle opHandle)
throws HiveSQLException
- Throws:
HiveSQLException
getOperationResultSetSchema
public TableSchema getOperationResultSetSchema(OperationHandle opHandle)
throws HiveSQLException
- Throws:
HiveSQLException
getOperationNextRowSet
public RowSet getOperationNextRowSet(OperationHandle opHandle)
throws HiveSQLException
- Throws:
HiveSQLException
getOperationNextRowSet
public RowSet getOperationNextRowSet(OperationHandle opHandle,
FetchOrientation orientation,
long maxRows)
throws HiveSQLException
- Throws:
HiveSQLException
Copyright © 2012 The Apache Software Foundation