|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.exec.Task<ConditionalWork>
org.apache.hadoop.hive.ql.exec.ConditionalTask
public class ConditionalTask
Conditional Task implementation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.exec.Task |
---|
Task.FeedType |
Field Summary |
---|
Fields inherited from class org.apache.hadoop.hive.ql.exec.Task |
---|
BACKUP_COMMON_JOIN, backupChildrenTasks, backupTask, childTasks, clonedConf, COMMON_JOIN, conf, console, CONVERTED_LOCAL_MAPJOIN, CONVERTED_MAPJOIN, db, driverContext, feedSubscribers, id, initialized, isdone, jobID, LOCAL_MAPJOIN, LOG, NO_TAG, parentTasks, queryPlan, queued, started, taskCounters, taskHandle, taskTag, work |
Constructor Summary | |
---|---|
ConditionalTask()
|
Method Summary | |
---|---|
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()
|
protected void |
localizeMRTmpFilesImpl(Context ctx)
If this task uses any map-reduce intermediate data (either for reading or for writing), localize them (using the supplied Context). |
void |
setListTasks(List<Task<? extends Serializable>> listTasks)
|
void |
setResolver(ConditionalResolver resolver)
|
void |
setResolverCtx(Object resolverCtx)
|
Methods inherited from class org.apache.hadoop.hive.ql.exec.Task |
---|
cloneConf, executeTask, fetch, getAndInitBackupTask, getBackupChildrenTasks, getBackupTask, getChildren, getChildTasks, getCounters, getFeedSubscribers, getId, getInitialized, getJobID, getParentTasks, getQueryPlan, getQueued, getReducer, getResultSchema, getTaskTag, getTopOperators, getWork, ifRetryCmdWhenFail, isLocalMode, isMapRedLocalTask, isRunnable, localizeMRTmpFiles, pushFeed, receiveFeed, removeDependentTask, removeFromChildrenTasks, requireLock, setBackupChildrenTasks, setBackupTask, setChildTasks, setDone, setFeedSubscribers, setId, setInitialized, setLocalMode, setParentTasks, setQueryPlan, setQueued, setRetryCmdWhenFail, setStarted, setTaskTag, setWork, started, subscribeFeed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConditionalTask()
Method Detail |
---|
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
getName
in interface Node
public boolean addDependentTask(Task<? extends Serializable> dependent)
addDependentTask
in class Task<ConditionalWork>
protected void localizeMRTmpFilesImpl(Context ctx)
Task
localizeMRTmpFilesImpl
in class Task<ConditionalWork>
ctx
- context object with which to localizepublic List<Task<? extends Serializable>> getDependentTasks()
Task
getDependentTasks
in class Task<ConditionalWork>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |