Package org.apache.pig.piggybank.evaluation.math

Examples of org.apache.pig.piggybank.evaluation.math.CEIL


          double actual = (new Double(output.strval())).doubleValue();
          assertEquals(actual, expected, delta);
   }
  
   public void testCEIL() throws Exception{
       EvalFunc<DataAtom> CEIL = new CEIL();
          Tuple tup = new Tuple(1);
          tup.setField(0, 0.5);
          DataAtom output = new DataAtom();
          CEIL.exec(tup, output);
          double expected = Math.ceil(0.5);
          double actual = (new Double(output.strval())).doubleValue();
          assertEquals(actual, expected, delta);
   }
View Full Code Here

TOP

Related Classes of org.apache.pig.piggybank.evaluation.math.CEIL

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.