org.apache.hive.service.cli.operation
Class SQLOperation

java.lang.Object
  extended by org.apache.hive.service.cli.operation.Operation
      extended by org.apache.hive.service.cli.operation.ExecuteStatementOperation
          extended by org.apache.hive.service.cli.operation.SQLOperation

public class SQLOperation
extends ExecuteStatementOperation

SQLOperation.


Field Summary
 
Fields inherited from class org.apache.hive.service.cli.operation.ExecuteStatementOperation
confOverlay, statement
 
Fields inherited from class org.apache.hive.service.cli.operation.Operation
DEFAULT_FETCH_MAX_ROWS, hasResultSet, LOG, parentSession
 
Constructor Summary
SQLOperation(Session parentSession, String statement, Map<String,String> confOverlay)
           
 
Method Summary
 void cancel()
           
 void close()
           
 RowSet getNextRowSet(FetchOrientation orientation, long maxRows)
           
 TableSchema getResultSetSchema()
           
 void prepare()
           
 void run()
           
 
Methods inherited from class org.apache.hive.service.cli.operation.ExecuteStatementOperation
getStatement, newExecuteStatementOperation
 
Methods inherited from class org.apache.hive.service.cli.operation.Operation
assertState, getConfiguration, getHandle, getNextRowSet, getParentSession, getState, getType, hasResultSet, isCanceled, isFailed, isFinished, isRunning, setConfiguration, setHasResultSet, setState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLOperation

public SQLOperation(Session parentSession,
                    String statement,
                    Map<String,String> confOverlay)
Method Detail

prepare

public void prepare()
             throws HiveSQLException
Throws:
HiveSQLException

run

public void run()
         throws HiveSQLException
Specified by:
run in class Operation
Throws:
HiveSQLException

cancel

public void cancel()
            throws HiveSQLException
Overrides:
cancel in class Operation
Throws:
HiveSQLException

close

public void close()
           throws HiveSQLException
Specified by:
close in class Operation
Throws:
HiveSQLException

getResultSetSchema

public TableSchema getResultSetSchema()
                               throws HiveSQLException
Specified by:
getResultSetSchema in class Operation
Throws:
HiveSQLException

getNextRowSet

public RowSet getNextRowSet(FetchOrientation orientation,
                            long maxRows)
                     throws HiveSQLException
Specified by:
getNextRowSet in class Operation
Throws:
HiveSQLException


Copyright © 2013 The Apache Software Foundation