Search in sources :

Example 11 with TaskGraphWalker

use of org.apache.hadoop.hive.ql.lib.TaskGraphWalker in project hive by apache.

the class SortMergeJoinResolver method resolve.

@Override
public PhysicalContext resolve(PhysicalContext pctx) throws SemanticException {
    // create dispatcher and graph walker
    Dispatcher disp = new SortMergeJoinTaskDispatcher(pctx);
    TaskGraphWalker ogw = new TaskGraphWalker(disp);
    // get all the tasks nodes from root task
    List<Node> topNodes = new ArrayList<Node>();
    topNodes.addAll(pctx.rootTasks);
    // begin to walk through the task tree.
    ogw.startWalking(topNodes, null);
    return pctx;
}
Also used : TaskGraphWalker(org.apache.hadoop.hive.ql.lib.TaskGraphWalker) Node(org.apache.hadoop.hive.ql.lib.Node) ArrayList(java.util.ArrayList) Dispatcher(org.apache.hadoop.hive.ql.lib.Dispatcher)

Aggregations

ArrayList (java.util.ArrayList)11 Node (org.apache.hadoop.hive.ql.lib.Node)11 TaskGraphWalker (org.apache.hadoop.hive.ql.lib.TaskGraphWalker)11 Dispatcher (org.apache.hadoop.hive.ql.lib.Dispatcher)8 DefaultRuleDispatcher (org.apache.hadoop.hive.ql.lib.DefaultRuleDispatcher)5