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

Examples of org.apache.pig.piggybank.evaluation.math.SCALB.exec()


          EvalFunc<DataAtom> SCALB = new SCALB();
          Tuple tup = new Tuple(2);
          tup.setField(0, 1);
          tup.setField(1,2);
          DataAtom output = new DataAtom();
          SCALB.exec(tup, output);
          double expected = Math.scalb(1,2);
          double actual = (new Double(output.strval())).doubleValue();
          assertEquals(actual, expected, delta);
      }
  
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.