Package com.netflix.lipstick.model.operators

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


     * @param node LOFilterJsonAdaptor operator to convert to P2jLOCogroup.
     * @param lp the LogicalPlan containing node
     * @throws FrontendException
     */
    public LOFilterJsonAdaptor(LOFilter node, LogicalPlan lp) throws FrontendException {
        super(node, new P2jLOFilter(), lp);
        P2jLOFilter filter = (P2jLOFilter) p2j;
        filter.setExpression(LogicalExpressionPlanSerializer.serialize(node.getFilterPlan()));
    }
View Full Code Here


        Assert.assertNotNull(cogroup.getGroup());
    }

    private void verifyFilterAdaptor(LOFilterJsonAdaptor adaptor, LOFilter lro) {
        Assert.assertTrue(adaptor.getToP2jOperator() instanceof P2jLOFilter);
        P2jLOFilter filter = (P2jLOFilter) adaptor.getToP2jOperator();
        Assert.assertEquals(filter.getExpression(), LogicalExpressionPlanSerializer.serialize(lro.getFilterPlan()));
    }
View Full Code Here

        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();
        filter1.setAlias("colors_filtered");
        filter1.setPredecessors(Lists.newArrayList("colors"));

        expectedOps.add(filter1);

        // Add all expected P2jLOCogroup objects
        P2jLOCogroup cogroup1 = new P2jLOCogroup();
View Full Code Here

TOP

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

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.