org.apache.hadoop.hive.ql.exec
Class ConditionalTask

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.Task<ConditionalWork>
      extended by org.apache.hadoop.hive.ql.exec.ConditionalTask
All Implemented Interfaces:
Serializable

public class ConditionalTask
extends Task<ConditionalWork>
implements Serializable

Conditional Task implementation

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.hadoop.hive.ql.exec.Task
childTasks, conf, console, db, id, initialized, isdone, LOG, parentTasks, queryPlan, queued, started, taskCounters, taskHandle, work
 
Constructor Summary
ConditionalTask()
           
 
Method Summary
 int execute()
          This method is overridden in each Task.
 List<Task<? extends Serializable>> getListTasks()
           
 ConditionalResolver getResolver()
           
 Object getResolverCtx()
           
 int getType()
          Should be overridden to return the type of the specific task among the types in TaskType
 boolean hasReduce()
           
 void initialize(HiveConf conf, QueryPlan queryPlan)
           
 boolean isMapRedTask()
           
 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
addDependentTask, done, executeTask, fetch, getChildTasks, getCounters, getId, getInitialized, getParentTasks, getQueued, getWork, isRunnable, progress, removeDependentTask, setChildTasks, setDone, setId, setInitialized, setParentTasks, setQueued, setStarted, setWork, started, updateCounters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConditionalTask

public ConditionalTask()
Method Detail

isMapRedTask

public boolean isMapRedTask()
Overrides:
isMapRedTask in class Task<ConditionalWork>

hasReduce

public boolean hasReduce()
Overrides:
hasReduce in class Task<ConditionalWork>

initialize

public void initialize(HiveConf conf,
                       QueryPlan queryPlan)
Overrides:
initialize in class Task<ConditionalWork>

execute

public int execute()
Description copied from class: Task
This method is overridden in each Task. TODO execute should return a TaskHandle.

Specified by:
execute in class Task<ConditionalWork>
Returns:
status of executing the task

getResolver

public ConditionalResolver getResolver()
Returns:
the resolver

setResolver

public void setResolver(ConditionalResolver resolver)
Parameters:
resolver - the resolver to set

getResolverCtx

public Object getResolverCtx()
Returns:
the resolverCtx

setResolverCtx

public void setResolverCtx(Object resolverCtx)
Parameters:
resolverCtx - the resolverCtx to set

getListTasks

public List<Task<? extends Serializable>> getListTasks()
Returns:
the listTasks

setListTasks

public void setListTasks(List<Task<? extends Serializable>> listTasks)
Parameters:
listTasks - the listTasks to set

getType

public int getType()
Description copied from class: Task
Should be overridden to return the type of the specific task among the types in TaskType

Overrides:
getType in class Task<ConditionalWork>
Returns:
TaskTypeType.* or -1 if not overridden


Copyright © 2009 The Apache Software Foundation