return new P2jPlanGenerator(lps.getLP(null));
}
private Map<PhysicalOperator, Operator> getP2lMap(LipstickPigServer lps) throws Exception {
HExecutionEngine he = new HExecutionEngine(lps.getPigContext());
he.compile(getLogicalPlan(lps), null);
Map<Operator, PhysicalOperator> l2pMap = he.getLogToPhyMap();
Map<PhysicalOperator, Operator> p2lMap = Maps.newHashMap();
for (Entry<Operator, PhysicalOperator> i : l2pMap.entrySet()) {
p2lMap.put(i.getValue(), i.getKey());