Package com.netflix.lipstick.model.operators

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


     * @param node the LOLimit operator to convert to P2jLOLimit
     * @param lp the logical plan containing node
     * @throws FrontendException
     */
    public LOLimitJsonAdaptor(LOLimit node, LogicalPlan lp) throws FrontendException {
        super(node, new P2jLOLimit(), lp);
        ((P2jLOLimit) p2j).setRowLimit(node.getLimit());
    }
View Full Code Here


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

    private void verifyLimitAdaptor(LOLimitJsonAdaptor adaptor, LOLimit lro) {
        Assert.assertTrue(adaptor.getToP2jOperator() instanceof P2jLOLimit);
        P2jLOLimit limit = (P2jLOLimit) adaptor.getToP2jOperator();
        Assert.assertEquals(limit.getRowLimit(), lro.getLimit());
    }
View Full Code Here

        cogroup1.setSuccessors(Lists.newArrayList("out"));

        expectedOps.add(cogroup1);

        // Add all expected P2jLOLimit objects
        P2jLOLimit limit1 = new P2jLOLimit();
        limit1.setAlias("out");
        limit1.setPredecessors(Lists.newArrayList("tiny_colors_cogrp"));
        limit1.setSuccessors(Lists.newArrayList("file://" + System.getProperty("user.dir") + "/test_out_cogrp"));

        expectedOps.add(limit1);

        // For each op, ensure the aliases and all predecessors/successors match
        for (String scope : plan.getPlan().keySet()) {
View Full Code Here

TOP

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

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.