org.apache.hadoop.hive.ql.exec
Class FetchTask
java.lang.Object
org.apache.hadoop.hive.ql.exec.Task<fetchWork>
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
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 |
FetchTask
public FetchTask()
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)
throws IOException
- Overrides:
fetch
in class Task<fetchWork>
- Throws:
IOException
Copyright © 2009 The Apache Software Foundation