org.apache.pig.piggybank.evaluation.math
Class HYPOT
java.lang.Object
org.apache.pig.EvalFunc<Double>
org.apache.pig.piggybank.evaluation.math.Base
org.apache.pig.piggybank.evaluation.math.DoubleDoubleBase
org.apache.pig.piggybank.evaluation.math.HYPOT
public class HYPOT
- extends DoubleDoubleBase
math.HYPOT implements a binding to the Java function
Math.hypot(double,double)
.
Given a tuple with two data atom Returns sum of squares of two arguments.
- Parameters:
value
- Tuple containing two Double
.
- Return Value:
Double
- Return Schema:
- HYPOT_inputSchema
- Example:
register math.jar;
A = load 'mydata' using PigStorage() as ( float1 );
B = foreach A generate float1, math.HYPOT(float1);
- Author:
- ajay garg
- See Also:
Math.hypot(double,double)
,
Constructor Summary |
HYPOT()
|
Methods inherited from class org.apache.pig.piggybank.evaluation.math.Base |
outputSchema |
Methods inherited from class org.apache.pig.EvalFunc |
finish, getCacheFiles, 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 |
HYPOT
public HYPOT()
Copyright © 2012 The Apache Software Foundation