public class ConditionalTask extends Task<ConditionalWork> implements java.io.Serializable
Task.FeedTypeBACKUP_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, LOG, MAPJOIN_ONLY_NOBACKUP, NO_TAG, parentTasks, queryPlan, queued, started, taskCounters, taskHandle, taskTag, work| Constructor and Description |
|---|
ConditionalTask() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDependentTask(Task<? extends java.io.Serializable> dependent)
Add a dependent task on the current conditional task.
|
boolean |
done() |
int |
execute(DriverContext driverContext)
This method is overridden in each Task.
|
java.util.List<Task<? extends java.io.Serializable>> |
getDependentTasks()
The default dependent tasks are just child tasks, but different types could implement their own
(e.g.
|
java.util.List<Task<? extends java.io.Serializable>> |
getListTasks() |
java.lang.String |
getName()
Gets the name of the node.
|
ConditionalResolver |
getResolver() |
java.lang.Object |
getResolverCtx() |
StageType |
getType()
Should be overridden to return the type of the specific task among the types in StageType.
|
boolean |
hasReduce() |
void |
initialize(HiveConf conf,
QueryPlan queryPlan,
DriverContext driverContext) |
boolean |
isMapRedTask() |
void |
setListTasks(java.util.List<Task<? extends java.io.Serializable>> listTasks) |
void |
setResolver(ConditionalResolver resolver) |
void |
setResolverCtx(java.lang.Object resolverCtx) |
cloneConf, executeTask, fetch, getAndInitBackupTask, getBackupChildrenTasks, getBackupTask, getChildren, getChildTasks, getCounters, getFeedSubscribers, getId, getInitialized, getJobID, getParentTasks, getQueryPlan, getQueued, getReducer, getResultSchema, getTaskHandle, getTaskTag, getTopOperators, getWork, ifRetryCmdWhenFail, isLocalMode, isMapRedLocalTask, isRunnable, pushFeed, receiveFeed, removeDependentTask, removeFromChildrenTasks, requireLock, setBackupChildrenTasks, setBackupTask, setChildTasks, setDone, setFeedSubscribers, setId, setInitialized, setLocalMode, setParentTasks, setQueryPlan, setQueued, setRetryCmdWhenFail, setStarted, setTaskTag, setWork, shutdown, started, subscribeFeedpublic boolean isMapRedTask()
isMapRedTask in class Task<ConditionalWork>public boolean hasReduce()
hasReduce in class Task<ConditionalWork>public void initialize(HiveConf conf, QueryPlan queryPlan, DriverContext driverContext)
initialize in class Task<ConditionalWork>public int execute(DriverContext driverContext)
Taskexecute in class Task<ConditionalWork>public ConditionalResolver getResolver()
public void setResolver(ConditionalResolver resolver)
resolver - the resolver to setpublic java.lang.Object getResolverCtx()
public boolean done()
done in class Task<ConditionalWork>public void setResolverCtx(java.lang.Object resolverCtx)
resolverCtx - the resolverCtx to setpublic java.util.List<Task<? extends java.io.Serializable>> getListTasks()
public void setListTasks(java.util.List<Task<? extends java.io.Serializable>> listTasks)
listTasks - the listTasks to setpublic StageType getType()
TaskgetType in class Task<ConditionalWork>public java.lang.String getName()
Nodepublic boolean addDependentTask(Task<? extends java.io.Serializable> dependent)
addDependentTask in class Task<ConditionalWork>public java.util.List<Task<? extends java.io.Serializable>> getDependentTasks()
TaskgetDependentTasks in class Task<ConditionalWork>Copyright © 2012 The Apache Software Foundation