org.apache.pig.piggybank.evaluation.math
Class FLOOR
java.lang.Object
org.apache.pig.EvalFunc<Double>
org.apache.pig.piggybank.evaluation.math.Base
org.apache.pig.piggybank.evaluation.math.DoubleBase
org.apache.pig.piggybank.evaluation.math.FLOOR
public class FLOOR
- extends DoubleBase
math.FLOOR implements a binding to the Java function
Math.floor(double)
. Given a single
data atom it returns the largest (closest to positive infinity) double
value that is less than or equal to the argument and is equal to a
mathematical integer.
- Parameters:
value
- Double
.
- Return Value:
Double
- Return Schema:
- floor_inputSchema
- Example:
register math.jar;
A = load 'mydata' using PigStorage() as ( float1 );
B = foreach A generate float1, math.floor(float1);
- Author:
- ajay garg
- See Also:
Math.floor(double)
,
Constructor Summary |
FLOOR()
|
Methods inherited from class org.apache.pig.piggybank.evaluation.math.Base |
outputSchema |
Methods inherited from class org.apache.pig.EvalFunc |
finish, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, isAsynchronous, progress, setPigLogger, setReporter, warn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FLOOR
public FLOOR()
Copyright © ${year} The Apache Software Foundation