opRules.put(new RuleRegExp("R8", "RS%"), OpProcFactory.getReduceSinkProc());
opRules.put(new RuleRegExp("R9", "LVJ%"), OpProcFactory.getLateralViewJoinProc());
// The dispatcher fires the processor corresponding to the closest matching rule and passes the context along
Dispatcher disp = new DefaultRuleDispatcher(OpProcFactory.getDefaultProc(), opRules, lCtx);
GraphWalker ogw = new PreOrderWalker(disp);
// Create a list of topop nodes
ArrayList<Node> topNodes = new ArrayList<Node>();
topNodes.addAll(pctx.getTopOps().values());
ogw.startWalking(topNodes, null);
// Transfer the index from the lineage context to the session state.
if (SessionState.get() != null) {
SessionState.get().getLineageState().setIndex(lCtx.getIndex());
}