public class FetchTask extends Task<FetchWork> implements Serializable
Task.FeedTypeBACKUP_COMMON_JOIN, backupChildrenTasks, backupTask, childTasks, clonedConf, COMMON_JOIN, conf, console, CONVERTED_MAPJOIN, CONVERTED_MAPJOIN_LOCAL, CONVERTED_SORTMERGEJOIN, db, driverContext, feedSubscribers, HINTED_MAPJOIN, HINTED_MAPJOIN_LOCAL, id, initialized, isdone, jobID, MAPJOIN_ONLY_NOBACKUP, NO_TAG, parentTasks, queryPlan, queued, rootTask, 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(List 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.
|
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) |
boolean |
isFetchFrom(FileSinkDesc fs) |
void |
setMaxRows(int maxRows)
Set the maximum number of rows returned by fetch.
|
addDependentTask, cloneConf, done, equals, executeTask, getAndInitBackupTask, getBackupChildrenTasks, getBackupTask, getChildren, getChildTasks, getCounters, getDependentTasks, getFeedSubscribers, getId, getInitialized, getJobID, getMapWork, getNumChild, getNumParent, getParentTasks, getQueryPlan, getQueued, getReducer, getTaskHandle, getTaskTag, getTopOperators, getWork, hashCode, hasReduce, ifRetryCmdWhenFail, isFetchSource, isLocalMode, isMapRedLocalTask, isMapRedTask, isRootTask, isRunnable, pushFeed, receiveFeed, removeDependentTask, removeFromChildrenTasks, requireLock, setBackupChildrenTasks, setBackupTask, setChildTasks, setConsole, setDone, setException, setFeedSubscribers, setFetchSource, setId, setInitialized, setLocalMode, setParentTasks, setQueryPlan, setQueued, setRetryCmdWhenFail, setRootTask, setStarted, setTaskTag, setWork, shutdown, started, subscribeFeed, toStringpublic void initialize(HiveConf conf, QueryPlan queryPlan, DriverContext ctx)
initialize in class Task<FetchWork>public int execute(DriverContext driverContext)
Taskpublic TableDesc getTblDesc()
public int getMaxRows()
public void setMaxRows(int maxRows)
public boolean fetch(List res) throws IOException, CommandNeedRetryException
IOExceptionCommandNeedRetryExceptionpublic boolean isFetchFrom(FileSinkDesc fs)
public StageType getType()
Taskpublic String getName()
Nodepublic void clearFetch()
throws HiveException
HiveExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.