|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.exec.Task<FetchWork>
org.apache.hadoop.hive.ql.exec.FetchTask
public class FetchTask
FetchTask implementation.
Field Summary |
---|
Fields inherited from class org.apache.hadoop.hive.ql.exec.Task |
---|
childTasks, conf, console, db, driverContext, id, initialized, isdone, LOG, parentTasks, queryPlan, queued, started, taskCounters, taskHandle, work |
Constructor Summary | |
---|---|
FetchTask()
|
Method Summary | |
---|---|
int |
execute(DriverContext driverContext)
This method is overridden in each Task. |
boolean |
fetch(ArrayList<String> res)
|
int |
getMaxRows()
Return the maximum number of rows returned by fetch. |
String |
getName()
Gets the name of the node. |
TableDesc |
getTblDesc()
Return the tableDesc of the fetchWork. |
int |
getType()
Should be overridden to return the type of the specific task among the types in TaskType. |
void |
initialize(HiveConf conf,
QueryPlan queryPlan,
DriverContext ctx)
|
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, executeTask, getChildren, getChildTasks, getCounters, getDependentTasks, getId, getInitialized, getParentTasks, getQueued, getWork, hasReduce, isMapRedTask, isRunnable, progress, removeDependentTask, setChildTasks, setDone, setId, setInitialized, setParentTasks, setQueued, setStarted, setWork, started, updateCounters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FetchTask()
Method Detail |
---|
public void initialize(HiveConf conf, QueryPlan queryPlan, DriverContext ctx)
initialize
in class Task<FetchWork>
public int execute(DriverContext driverContext)
Task
execute
in class Task<FetchWork>
public TableDesc getTblDesc()
public int getMaxRows()
public void setMaxRows(int maxRows)
public boolean fetch(ArrayList<String> res) throws IOException
fetch
in class Task<FetchWork>
IOException
public int getType()
Task
getType
in class Task<FetchWork>
public String getName()
Node
getName
in interface Node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |