private void compilePlan(LogicalPlan plan) {
plan = refineLogicalPlan(plan);
LocalLogToPhyTranslationVisitor visitor = new LocalLogToPhyTranslationVisitor(
plan);
visitor.setPigContext(pigContext);
try {
visitor.visit();
} catch (VisitorException e) {
// TODO Auto-generated catch block
e.printStackTrace();
log.error("Error visiting the logical plan in ExampleGenerator");
}
physPlan = visitor.getPhysicalPlan();
LogToPhyMap = visitor.getLogToPhyMap();
}