Search in sources :

Example 1 with IndexWhereTaskDispatcher

use of org.apache.hadoop.hive.ql.optimizer.physical.index.IndexWhereTaskDispatcher in project hive by apache.

the class IndexWhereResolver method resolve.

@Override
public PhysicalContext resolve(PhysicalContext physicalContext) throws SemanticException {
    Dispatcher dispatcher = new IndexWhereTaskDispatcher(physicalContext);
    GraphWalker opGraphWalker = new DefaultGraphWalker(dispatcher);
    ArrayList<Node> topNodes = new ArrayList<Node>();
    topNodes.addAll(physicalContext.getRootTasks());
    opGraphWalker.startWalking(topNodes, null);
    return physicalContext;
}
Also used : IndexWhereTaskDispatcher(org.apache.hadoop.hive.ql.optimizer.physical.index.IndexWhereTaskDispatcher) DefaultGraphWalker(org.apache.hadoop.hive.ql.lib.DefaultGraphWalker) Node(org.apache.hadoop.hive.ql.lib.Node) ArrayList(java.util.ArrayList) Dispatcher(org.apache.hadoop.hive.ql.lib.Dispatcher) IndexWhereTaskDispatcher(org.apache.hadoop.hive.ql.optimizer.physical.index.IndexWhereTaskDispatcher) GraphWalker(org.apache.hadoop.hive.ql.lib.GraphWalker) DefaultGraphWalker(org.apache.hadoop.hive.ql.lib.DefaultGraphWalker)

Aggregations

ArrayList (java.util.ArrayList)1 DefaultGraphWalker (org.apache.hadoop.hive.ql.lib.DefaultGraphWalker)1 Dispatcher (org.apache.hadoop.hive.ql.lib.Dispatcher)1 GraphWalker (org.apache.hadoop.hive.ql.lib.GraphWalker)1 Node (org.apache.hadoop.hive.ql.lib.Node)1 IndexWhereTaskDispatcher (org.apache.hadoop.hive.ql.optimizer.physical.index.IndexWhereTaskDispatcher)1