Package org.apache.pig.experimental.logical.expression

Examples of org.apache.pig.experimental.logical.expression.AddExpression


        assertEquals( 1, genExp.getSources().size() );
       
       
        // Main Tests start here
        assertEquals( AddExpression.class, genExp.getSources().get(0).getClass() );
        AddExpression add = (AddExpression) genExp.getSources().get(0);
        assertEquals( ls.getField(0).uid, add.getLhs().getUid() );
        assertEquals( ls.getField(1).uid, add.getRhs().getUid() );
        assertTrue( ls.getField(0).uid != add.getUid() );
        assertTrue( ls.getField(1).uid != add.getUid() );
       
        assertEquals( 1, inputPln.getLeaves().size() );
        assertEquals( Add.class, inputPln.getLeaves().get(0).getClass() );
        Add pAdd = (Add) inputPln.getLeaves().get(0);
        assertEquals( 2, inputPln.getRoots().size() );
View Full Code Here


        public void visit(LOAdd binOp) throws VisitorException {   
            ExpressionOperator left = binOp.getLhsOperand();
            ExpressionOperator right = binOp.getRhsOperand();
           
            AddExpression ae = new AddExpression(exprPlan, binOp.getType()
                    , exprOpsMap.get(left), exprOpsMap.get(right));
            exprOpsMap.put(binOp, ae);
        }
View Full Code Here

TOP

Related Classes of org.apache.pig.experimental.logical.expression.AddExpression

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.