public class ExplainTask extends Task<ExplainWork> implements Serializable
Modifier and Type | Class and Description |
---|---|
class |
ExplainTask.MethodComparator
MethodComparator.
|
Task.FeedType
Modifier and Type | Field and Description |
---|---|
static String |
EXPL_COLUMN_NAME |
BACKUP_COMMON_JOIN, backupChildrenTasks, backupTask, childTasks, clonedConf, COMMON_JOIN, conf, console, CONVERTED_MAPJOIN, CONVERTED_MAPJOIN_LOCAL, CONVERTED_SORTMERGEJOIN, db, driverContext, feedSubscribers, HINTED_MAPJOIN, HINTED_MAPJOIN_LOCAL, id, initialized, isdone, jobID, LOG, MAPJOIN_ONLY_NOBACKUP, NO_TAG, parentTasks, queryPlan, queued, rootTask, started, taskCounters, taskHandle, taskTag, work
Constructor and Description |
---|
ExplainTask() |
Modifier and Type | Method and Description |
---|---|
int |
execute(DriverContext driverContext)
This method is overridden in each Task.
|
org.json.JSONObject |
getJSONLogicalPlan(PrintStream out,
ExplainWork work) |
org.json.JSONObject |
getJSONPlan(PrintStream out,
ExplainWork work) |
org.json.JSONObject |
getJSONPlan(PrintStream out,
String ast,
List<Task<?>> tasks,
Task<?> fetchTask,
boolean jsonOutput,
boolean isExtended,
boolean appendTaskType) |
String |
getName()
Gets the name of the node.
|
List<FieldSchema> |
getResultSchema() |
StageType |
getType()
Should be overridden to return the type of the specific task among the types in StageType.
|
String |
outputAST(String treeString,
PrintStream out,
boolean jsonOutput,
int indent) |
org.json.JSONObject |
outputDependencies(PrintStream out,
boolean jsonOutput,
boolean appendTaskType,
List<Task> tasks) |
org.json.JSONObject |
outputStagePlans(PrintStream out,
List<Task> tasks,
boolean jsonOutput,
boolean isExtended) |
addDependentTask, cloneConf, done, equals, executeTask, getAndInitBackupTask, getBackupChildrenTasks, getBackupTask, getChildren, getChildTasks, getCounters, getDependentTasks, getFeedSubscribers, getId, getInitialized, getJobID, getMapWork, getNumChild, getNumParent, getParentTasks, getQueryPlan, getQueued, getReducer, getTaskHandle, getTaskTag, getTopOperators, getWork, hashCode, hasReduce, ifRetryCmdWhenFail, initialize, isFetchSource, isLocalMode, isMapRedLocalTask, isMapRedTask, isRootTask, isRunnable, pushFeed, receiveFeed, removeDependentTask, removeFromChildrenTasks, requireLock, setBackupChildrenTasks, setBackupTask, setChildTasks, setConsole, setDone, setException, setFeedSubscribers, setFetchSource, setId, setInitialized, setLocalMode, setParentTasks, setQueryPlan, setQueued, setRetryCmdWhenFail, setRootTask, setStarted, setTaskTag, setWork, shutdown, started, subscribeFeed, toString
public static final String EXPL_COLUMN_NAME
public org.json.JSONObject getJSONLogicalPlan(PrintStream out, ExplainWork work) throws Exception
Exception
public org.json.JSONObject getJSONPlan(PrintStream out, ExplainWork work) throws Exception
Exception
public org.json.JSONObject getJSONPlan(PrintStream out, String ast, List<Task<?>> tasks, Task<?> fetchTask, boolean jsonOutput, boolean isExtended, boolean appendTaskType) throws Exception
Exception
public int execute(DriverContext driverContext)
Task
execute
in class Task<ExplainWork>
public String outputAST(String treeString, PrintStream out, boolean jsonOutput, int indent) throws org.json.JSONException
org.json.JSONException
public org.json.JSONObject outputDependencies(PrintStream out, boolean jsonOutput, boolean appendTaskType, List<Task> tasks) throws Exception
Exception
public org.json.JSONObject outputStagePlans(PrintStream out, List<Task> tasks, boolean jsonOutput, boolean isExtended) throws Exception
Exception
public StageType getType()
Task
getType
in class Task<ExplainWork>
public String getName()
Node
public List<FieldSchema> getResultSchema()
Copyright © 2017 The Apache Software Foundation. All rights reserved.