public class FetchTask extends Task<FetchWork> implements java.io.Serializable
Task.FeedType
BACKUP_COMMON_JOIN, backupChildrenTasks, backupTask, childTasks, clonedConf, COMMON_JOIN, conf, console, CONVERTED_LOCAL_MAPJOIN, CONVERTED_MAPJOIN, CONVERTED_SORTMERGEJOIN, db, driverContext, feedSubscribers, id, initialized, isdone, jobID, LOCAL_MAPJOIN, MAPJOIN_ONLY_NOBACKUP, NO_TAG, parentTasks, queryPlan, queued, started, taskCounters, taskHandle, taskTag, work
Constructor and Description |
---|
FetchTask() |
Modifier and Type | Method and Description |
---|---|
void |
clearFetch()
Clear the Fetch Operator.
|
int |
execute(DriverContext driverContext)
This method is overridden in each Task.
|
boolean |
fetch(java.util.ArrayList<java.lang.String> res) |
int |
getMaxRows()
Return the maximum number of rows returned by fetch.
|
java.lang.String |
getName()
Gets the name of the node.
|
TableDesc |
getTblDesc()
Return the tableDesc of the fetchWork.
|
StageType |
getType()
Should be overridden to return the type of the specific task among the types in StageType.
|
void |
initialize(HiveConf conf,
QueryPlan queryPlan,
DriverContext ctx) |
void |
setMaxRows(int maxRows)
Set the maximum number of rows returned by fetch.
|
addDependentTask, cloneConf, done, executeTask, getAndInitBackupTask, getBackupChildrenTasks, getBackupTask, getChildren, getChildTasks, getCounters, getDependentTasks, getFeedSubscribers, getId, getInitialized, getJobID, getParentTasks, getQueryPlan, getQueued, getReducer, getResultSchema, getTaskHandle, getTaskTag, getTopOperators, getWork, hasReduce, ifRetryCmdWhenFail, isLocalMode, isMapRedLocalTask, isMapRedTask, isRunnable, pushFeed, receiveFeed, removeDependentTask, removeFromChildrenTasks, requireLock, setBackupChildrenTasks, setBackupTask, setChildTasks, setDone, setFeedSubscribers, setId, setInitialized, setLocalMode, setParentTasks, setQueryPlan, setQueued, setRetryCmdWhenFail, setStarted, setTaskTag, setWork, shutdown, started, subscribeFeed
public void initialize(HiveConf conf, QueryPlan queryPlan, DriverContext ctx)
initialize
in class Task<FetchWork>
public int execute(DriverContext driverContext)
Task
public TableDesc getTblDesc()
public int getMaxRows()
public void setMaxRows(int maxRows)
public boolean fetch(java.util.ArrayList<java.lang.String> res) throws java.io.IOException, CommandNeedRetryException
fetch
in class Task<FetchWork>
java.io.IOException
CommandNeedRetryException
public StageType getType()
Task
public java.lang.String getName()
Node
public void clearFetch() throws HiveException
HiveException
Copyright © 2012 The Apache Software Foundation