org.apache.hadoop.hive.ql.exec
Class DDLTask
java.lang.Object
org.apache.hadoop.hive.ql.exec.Task<DDLWork>
org.apache.hadoop.hive.ql.exec.DDLTask
- All Implemented Interfaces:
- Serializable
public class DDLTask
- extends Task<DDLWork>
- implements Serializable
DDLTask implementation
- See Also:
- Serialized Form
Fields inherited from class org.apache.hadoop.hive.ql.exec.Task |
childTasks, console, db, id, initialized, isdone, parentTasks, queryPlan, queued, started, taskCounters, taskHandle, work |
Method Summary |
int |
execute()
This method is overridden in each Task. |
org.apache.hadoop.hive.ql.plan.api.StageType |
getType()
Should be overridden to return the type of the specific task among
the types in TaskType |
void |
initialize(HiveConf conf,
QueryPlan queryPlan)
|
Methods inherited from class org.apache.hadoop.hive.ql.exec.Task |
addDependentTask, done, executeTask, fetch, getChildTasks, getCounters, 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 |
DDLTask
public DDLTask()
initialize
public void initialize(HiveConf conf,
QueryPlan queryPlan)
- Overrides:
initialize
in class Task<DDLWork>
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<DDLWork>
- Returns:
- status of executing the task
getType
public org.apache.hadoop.hive.ql.plan.api.StageType 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<DDLWork>
- Returns:
- TaskTypeType.* or -1 if not overridden
Copyright © 2009 The Apache Software Foundation