public class SQLOperation extends ExecuteStatementOperation
statement
backgroundHandle, confOverlay, DEFAULT_FETCH_MAX_ROWS, DEFAULT_FETCH_ORIENTATION, DEFAULT_FETCH_ORIENTATION_SET, hasResultSet, isOperationLogEnabled, LOG, operationComplete, operationException, operationLog, operationStart, parentSession, QUERYID_LOG_KEY, queryState, scopeStates, SESSIONID_LOG_KEY, terminalStates
Constructor and Description |
---|
SQLOperation(HiveSession parentSession,
String statement,
Map<String,String> confOverlay,
boolean runInBackground,
long queryTimeout) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(OperationState stateAfterCancel) |
void |
close() |
String |
getExecutionEngine() |
RowSet |
getNextRowSet(FetchOrientation orientation,
long maxRows) |
TableSchema |
getResultSetSchema() |
SQLOperationDisplay |
getSQLOperationDisplay()
Get summary information of this SQLOperation for display in WebUI.
|
String |
getTaskStatus() |
protected void |
onNewState(OperationState state,
OperationState prevState) |
void |
prepare(QueryState queryState)
Compile the query and extract metadata
|
void |
runInternal()
Implemented by subclass of Operation class to execute specific behaviors.
|
boolean |
shouldRunAsync() |
getStatement, newExecuteStatementOperation
afterRun, assertState, beforeRun, cleanupOperationLog, createOperationLog, getBackgroundHandle, getBeginTime, getHandle, getLastAccessTime, getNextRowSet, getOperationComplete, getOperationLog, getOperationStart, getOperationTimeout, getParentSession, getProtocolVersion, getState, getStatus, getType, hasResultSet, isCanceled, isFailed, isFinished, isRunning, isTimedOut, markOperationCompletedTime, markOperationStartTime, registerLoggingContext, run, setBackgroundHandle, setHasResultSet, setMetrics, setOperationException, setOperationTimeout, setState, toSQLException, unregisterLoggingContext, unregisterOperationLog, validateDefaultFetchOrientation, validateFetchOrientation
public SQLOperation(HiveSession parentSession, String statement, Map<String,String> confOverlay, boolean runInBackground, long queryTimeout)
public boolean shouldRunAsync()
shouldRunAsync
in class Operation
public void prepare(QueryState queryState) throws HiveSQLException
sqlOperationConf
- HiveSQLException
public void runInternal() throws HiveSQLException
Operation
runInternal
in class Operation
HiveSQLException
public void cancel(OperationState stateAfterCancel) throws HiveSQLException
cancel
in class Operation
HiveSQLException
public void close() throws HiveSQLException
close
in class Operation
HiveSQLException
public TableSchema getResultSetSchema() throws HiveSQLException
getResultSetSchema
in class Operation
HiveSQLException
public RowSet getNextRowSet(FetchOrientation orientation, long maxRows) throws HiveSQLException
getNextRowSet
in class Operation
HiveSQLException
public String getTaskStatus() throws HiveSQLException
getTaskStatus
in class Operation
HiveSQLException
public SQLOperationDisplay getSQLOperationDisplay()
protected void onNewState(OperationState state, OperationState prevState)
onNewState
in class Operation
public String getExecutionEngine()
Copyright © 2016 The Apache Software Foundation. All rights reserved.