@Override public Object dispatch(Node nd, Stack<Node> ndStack, Object... nodeOutputs)
      throws SemanticException {

    int nodeType = ((ASTNode) nd).getType();
    SemanticNodeProcessor processor = this.defaultProc;
    if (this.procRules.containsKey(nodeType)) {
      processor = this.procRules.get(((ASTNode) nd).getType()).iterator().next();
    }
    return processor.process(nd, ndStack, procCtx, nodeOutputs);
  }
Dispatcher function.

@param nd      operator to process
@param ndStack the operators encountered so far
@throws SemanticException
ql/src/java/org/apache/hadoop/hive/ql/lib/CostLessRuleDispatcher.java