public class ConditionalTask extends Task<ConditionalWork> implements Serializable
Task.FeedType
BACKUP_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, LOG, MAPJOIN_ONLY_NOBACKUP, NO_TAG, parentTasks, queryPlan, queued, rootTask, started, taskCounters, taskHandle, taskTag, work
Constructor and Description |
---|
ConditionalTask() |
Modifier and Type | Method and Description |
---|---|
boolean |
addDependentTask(Task<? extends Serializable> dependent)
Add a dependent task on the current conditional task.
|
boolean |
done() |
int |
execute(DriverContext driverContext)
This method is overridden in each Task.
|
List<Task<? extends Serializable>> |
getDependentTasks()
The default dependent tasks are just child tasks, but different types could implement their own
(e.g.
|
List<Task<? extends Serializable>> |
getListTasks() |
String |
getName()
Gets the name of the node.
|
ConditionalResolver |
getResolver() |
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(List<Task<? extends Serializable>> listTasks) |
void |
setResolver(ConditionalResolver resolver) |
void |
setResolverCtx(Object resolverCtx) |
cloneConf, equals, executeTask, getAndInitBackupTask, getBackupChildrenTasks, getBackupTask, getChildren, getChildTasks, getCounters, getFeedSubscribers, getId, getInitialized, getJobID, getMapWork, getNumChild, getNumParent, getParentTasks, getQueryPlan, getQueued, getReducer, getTaskHandle, getTaskTag, getTopOperators, getWork, hashCode, ifRetryCmdWhenFail, isFetchSource, isLocalMode, isMapRedLocalTask, 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, toString
public 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)
Task
execute
in class Task<ConditionalWork>
public ConditionalResolver getResolver()
public void setResolver(ConditionalResolver resolver)
resolver
- the resolver to setpublic Object getResolverCtx()
public boolean done()
done
in class Task<ConditionalWork>
public void setResolverCtx(Object resolverCtx)
resolverCtx
- the resolverCtx to setpublic List<Task<? extends Serializable>> getListTasks()
public void setListTasks(List<Task<? extends Serializable>> listTasks)
listTasks
- the listTasks to setpublic StageType getType()
Task
getType
in class Task<ConditionalWork>
public String getName()
Node
public boolean addDependentTask(Task<? extends Serializable> dependent)
addDependentTask
in class Task<ConditionalWork>
public List<Task<? extends Serializable>> getDependentTasks()
Task
getDependentTasks
in class Task<ConditionalWork>
Copyright © 2017 The Apache Software Foundation. All rights reserved.