public PhysicalPlan buildPhysicalPlan(LogicalPlan lp)
throws VisitorException {
LocalLogToPhyTranslationVisitor visitor = new LocalLogToPhyTranslationVisitor(
lp);
visitor.setPigContext(pigContext);
visitor.visit();
return visitor.getPhysicalPlan();
}
public LogicalPlan buildPlan(String query) {
return buildPlan(query, LogicalPlanBuilder.class.getClassLoader());