Package com.netflix.lipstick

Examples of com.netflix.lipstick.P2jPlanGenerator


    /* Create Mock P2jPlanGenerator objects with methods stubbed out to
       let the BasicP2LClient.createPlan() method complete, and
       pass them to the client via the setter method. */
    public void setMockPlanGenerators(BasicP2LClient client) {
        P2jPlan pln = mock(P2jPlan.class);
        P2jPlanGenerator unopt_plan = mock(P2jPlanGenerator.class);
        when(unopt_plan.getP2jPlan()).thenReturn(pln);
        P2jPlanGenerator opt_plan = mock(P2jPlanGenerator.class);
        when(opt_plan.getP2jPlan()).thenReturn(pln);
        client.setPlanGenerators(unopt_plan, opt_plan);
    }
View Full Code Here


     */
    @Override
    protected PigStats launchPlan(PhysicalPlan pp, String jobName) throws ExecException, FrontendException {
        if (ppnl != null) {
            try {
                optimizedPlanGenerator = new P2jPlanGenerator(getCurrDAG().getPlan(null));
                ppnl.setPlanGenerators(unoptimizedPlanGenerator, optimizedPlanGenerator);
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
View Full Code Here

     * Registers the given query and constructs an unoptimized plan generator.
     */
    @Override
    public void registerQuery(String query, int startLine) throws IOException {
        super.registerQuery(query, startLine);
        unoptimizedPlanGenerator = new P2jPlanGenerator(getCurrDAG().getPlan(null));
    }
View Full Code Here

TOP

Related Classes of com.netflix.lipstick.P2jPlanGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.