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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.Task<FunctionWork>
      extended by org.apache.hadoop.hive.ql.exec.FunctionTask
All Implemented Interfaces:
Serializable, Node

public class FunctionTask
extends Task<FunctionWork>

FunctionTask.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.hadoop.hive.ql.exec.Task
childTasks, console, db, driverContext, id, initialized, isdone, parentTasks, queryPlan, queued, started, taskCounters, taskHandle, work
 
Constructor Summary
FunctionTask()
           
 
Method Summary
 int execute(DriverContext driverContext)
          This method is overridden in each Task.
 String getName()
          Gets the name of the node.
 int getType()
          Should be overridden to return the type of the specific task among the types in TaskType.
 void initialize(HiveConf conf, QueryPlan queryPlan, DriverContext ctx)
           
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.Task
addDependentTask, done, executeTask, fetch, getChildren, getChildTasks, getCounters, getDependentTasks, getId, getInitialized, getParentTasks, getQueued, getWork, hasReduce, isMapRedTask, 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

FunctionTask

public FunctionTask()
Method Detail

initialize

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

execute

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

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

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<FunctionWork>
Returns:
TaskTypeType.* or -1 if not overridden

getName

public String getName()
Description copied from interface: Node
Gets the name of the node. This is used in the rule dispatchers.

Returns:
String


Copyright © 2010 The Apache Software Foundation