Package com.netflix.lipstick.model.operators

Examples of com.netflix.lipstick.model.operators.P2jLOJoin


     * @param node LOJoin operator to convert to P2jLOJoin.
     * @param lp the LogicalPlan containing node
     * @throws FrontendException
     */
    public LOJoinJsonAdaptor(LOJoin node, LogicalPlan lp) throws FrontendException {
        super(node, new P2jLOJoin(), lp);
        P2jLOJoin join = (P2jLOJoin) p2j;
        join.setJoin(node.getJoinType().toString(), getJoinType(node), getJoinExpressions(node, lp));
    }
View Full Code Here


        Assert.assertEquals(split.getExpression(), LogicalExpressionPlanSerializer.serialize(lro.getFilterPlan()));
    }

    private void verifyJoinAdaptor(LOJoinJsonAdaptor adaptor, LOJoin lro) {
        Assert.assertTrue(adaptor.getToP2jOperator() instanceof P2jLOJoin);
        P2jLOJoin join = (P2jLOJoin) adaptor.getToP2jOperator();
        Assert.assertNotNull(join.getJoin());
    }
View Full Code Here

        }
        if (oper.getOperator().equalsIgnoreCase("LOLimit")) {
            return Long.toString(((P2jLOLimit) oper).getRowLimit());
        }
        if (oper.getOperator().equalsIgnoreCase("LOJoin")) {
            P2jLOJoin loj = (P2jLOJoin) oper;
            return loj.getJoin().getType() + ", " + loj.getJoin().getStrategy();
        }
        return "";
    }
View Full Code Here

        store3.setPredecessors(Lists.newArrayList("tiny_colors"));

        expectedOps.addAll(Lists.newArrayList(store1, store2, store3));

        // Add all expected P2jLOJoin objects
        P2jLOJoin join1 = new P2jLOJoin();
        join1.setAlias("tiny_colors");
        join1.setPredecessors(Lists.newArrayList("tiny", "colors"));
        join1.setSuccessors(Lists.newArrayList("file://" + System.getProperty("user.dir") + "/test_out_tiny_colors"));
        P2jLOJoin join2 = new P2jLOJoin();
        join2.setAlias("tiny_colors_join");
        join2.setPredecessors(Lists.newArrayList("tiny", "colors", "colors2", "colors3"));
        join2.setSuccessors(Lists.newArrayList("file://" + System.getProperty("user.dir") + "/test_out_join"));

        expectedOps.addAll(Lists.newArrayList(join1, join2));

        // Add all expected P2jLOFilter objects
        P2jLOFilter filter1 = new P2jLOFilter();
View Full Code Here

TOP

Related Classes of com.netflix.lipstick.model.operators.P2jLOJoin

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.