org.apache.hadoop.hive.ql.exec
Class FetchTask

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.Task<fetchWork>
      extended by org.apache.hadoop.hive.ql.exec.FetchTask
All Implemented Interfaces:
Serializable

public class FetchTask
extends Task<fetchWork>
implements Serializable

FetchTask implementation

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.hadoop.hive.ql.exec.Task
childTasks, conf, console, db, id, LOG, parentTasks, work
 
Constructor Summary
FetchTask()
           
 
Method Summary
 int execute()
           
 boolean fetch(Vector<String> res)
           
 int getMaxRows()
          Return the maximum number of rows returned by fetch
 tableDesc getTblDesc()
          Return the tableDesc of the fetchWork
 void initialize(HiveConf conf)
           
 void setMaxRows(int maxRows)
          Set the maximum number of rows returned by fetch
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.Task
addDependentTask, done, getChildTasks, getId, getParentTasks, getWork, hasReduce, isMapRedTask, isRunnable, removeDependentTask, setChildTasks, setDone, setId, setParentTasks, setWork
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FetchTask

public FetchTask()
Method Detail

initialize

public void initialize(HiveConf conf)
Overrides:
initialize in class Task<fetchWork>

execute

public int execute()
Specified by:
execute in class Task<fetchWork>

getTblDesc

public tableDesc getTblDesc()
Return the tableDesc of the fetchWork


getMaxRows

public int getMaxRows()
Return the maximum number of rows returned by fetch


setMaxRows

public void setMaxRows(int maxRows)
Set the maximum number of rows returned by fetch


fetch

public boolean fetch(Vector<String> res)
Overrides:
fetch in class Task<fetchWork>


Copyright © 2009 The Apache Software Foundation