public class SQLOperation extends ExecuteStatementOperation
statementbackgroundHandle, DEFAULT_FETCH_ORIENTATION, DEFAULT_FETCH_ORIENTATION_SET, hasResultSet, isOperationLogEnabled, LOG, operationComplete, operationException, operationLog, operationStart, parentSession, queryState, scopeStates, 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) |
QueryInfo |
getQueryInfo()
Get summary information of this SQLOperation for display in WebUI.
|
TableSchema |
getResultSetSchema() |
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, newExecuteStatementOperationafterRun, assertState, beforeRun, cleanupOperationLog, createOperationLog, getBackgroundHandle, getBeginTime, getHandle, getLastAccessTime, getOperationComplete, getOperationLog, getOperationStart, getOperationTimeout, getParentSession, getProtocolVersion, getState, getStatus, getType, hasResultSet, isDone, isTimedOut, markOperationCompletedTime, markOperationStartTime, run, setBackgroundHandle, setHasResultSet, setOperationException, setOperationTimeout, setState, toSQLException, updateOperationStateMetrics, validateDefaultFetchOrientation, validateFetchOrientationpublic SQLOperation(HiveSession parentSession, String statement, Map<String,String> confOverlay, boolean runInBackground, long queryTimeout)
public boolean shouldRunAsync()
shouldRunAsync in class Operationpublic void prepare(QueryState queryState) throws HiveSQLException
HiveSQLExceptionpublic void runInternal()
throws HiveSQLException
OperationrunInternal in class OperationHiveSQLExceptionpublic void cancel(OperationState stateAfterCancel) throws HiveSQLException
cancel in class OperationHiveSQLExceptionpublic void close()
throws HiveSQLException
close in class OperationHiveSQLExceptionpublic TableSchema getResultSetSchema() throws HiveSQLException
getResultSetSchema in class OperationHiveSQLExceptionpublic RowSet getNextRowSet(FetchOrientation orientation, long maxRows) throws HiveSQLException
getNextRowSet in class OperationHiveSQLExceptionpublic String getTaskStatus() throws HiveSQLException
getTaskStatus in class OperationHiveSQLExceptionpublic QueryInfo getQueryInfo()
protected void onNewState(OperationState state, OperationState prevState)
onNewState in class Operationpublic String getExecutionEngine()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.