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

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


       
        assertEquals( 1, genExp.getSources().size() );
       
        // Main Tests start here
        assertEquals( NegativeExpression.class, genExp.getSources().get(0).getClass() );
        NegativeExpression add = (NegativeExpression) genExp.getSources().get(0);
        assertEquals( ls.getField(0).uid, add.getExpression().getUid() );
        assertTrue( ls.getField(0).uid != add.getUid() );
        assertTrue( ls.getField(1).uid != add.getUid() );
       
        assertEquals( 1, inputPln.getLeaves().size() );
        assertEquals( PONegative.class, inputPln.getLeaves().get(0).getClass() );
        PONegative pNegative = (PONegative) inputPln.getLeaves().get(0);
        assertEquals( 1, inputPln.getRoots().size() );
View Full Code Here


        }

       
        public void visit(LONegative uniOp) throws VisitorException {
            ExpressionOperator exp = uniOp.getOperand();
            NegativeExpression op = new NegativeExpression(exprPlan, exp.getType(), exprOpsMap.get(exp));
            exprOpsMap.put(uniOp, op);
        }
View Full Code Here

TOP

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

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.