org.apache.hadoop.hive.ql.exec
Class ExplainTask
java.lang.Object
org.apache.hadoop.hive.ql.exec.Task<ExplainWork>
org.apache.hadoop.hive.ql.exec.ExplainTask
- All Implemented Interfaces:
- Serializable, Node
public class ExplainTask
- extends Task<ExplainWork>
- implements Serializable
ExplainTask implementation.
- See Also:
- Serialized Form
Fields inherited from class org.apache.hadoop.hive.ql.exec.Task |
childTasks, conf, console, db, driverContext, id, initialized, isdone, LOG, parentTasks, queryPlan, queued, started, taskCounters, taskHandle, work |
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, initialize, 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 |
ExplainTask
public ExplainTask()
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<ExplainWork>
- Returns:
- status of executing the task
outputAST
public void outputAST(String treeString,
PrintStream out,
int indent)
outputDependencies
public void outputDependencies(PrintStream out,
List<Task<? extends Serializable>> rootTasks,
int indent)
throws Exception
- Throws:
Exception
outputStagePlans
public void outputStagePlans(PrintStream out,
List<Task<? extends Serializable>> rootTasks,
int indent)
throws Exception
- Throws:
Exception
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<ExplainWork>
- 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.
- Specified by:
getName
in interface Node
- Returns:
- String
Copyright © 2010 The Apache Software Foundation