org.apache.pig.piggybank.evaluation.math
Class RINT

java.lang.Object
  extended by org.apache.pig.EvalFunc<Double>
      extended by org.apache.pig.piggybank.evaluation.math.Base
          extended by org.apache.pig.piggybank.evaluation.math.DoubleBase
              extended by org.apache.pig.piggybank.evaluation.math.RINT

public class RINT
extends DoubleBase

math.RINT implements a binding to the Java function Math.rint(double). Given a single data atom it Returns the double value that is closest in value to the argument and is equal to a mathematical integer.

Parameters:
value - Double.
Return Value:
Double
Return Schema:
RINT_inputSchema
Example:
register math.jar;
A = load 'mydata' using PigStorage() as ( float1 );
B = foreach A generate float1, math.RINT(float1);

Author:
ajay garg
See Also:
Math.rint(double),

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.pig.EvalFunc
EvalFunc.SchemaType
 
Field Summary
 
Fields inherited from class org.apache.pig.EvalFunc
log, pigLogger, reporter, returnType
 
Constructor Summary
RINT()
           
 
Method Summary
 
Methods inherited from class org.apache.pig.piggybank.evaluation.math.DoubleBase
exec, getArgToFuncMapping
 
Methods inherited from class org.apache.pig.piggybank.evaluation.math.Base
outputSchema
 
Methods inherited from class org.apache.pig.EvalFunc
finish, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, isAsynchronous, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RINT

public RINT()


Copyright © 2007-2012 The Apache Software Foundation