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

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.toDegrees

public class toDegrees
extends DoubleBase

math.toDegrees implements a binding to the Java function Math.toDegrees(double). Given a single data atom it Converts an angle measured in radians to an approximately equivalent angle measured in degrees.

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

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

Field Summary
 
Fields inherited from class org.apache.pig.EvalFunc
log, pigLogger, reporter, returnType
 
Constructor Summary
toDegrees()
           
 
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, 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
 

Constructor Detail

toDegrees

public toDegrees()


Copyright © 2007-2012 The Apache Software Foundation