Last active
December 13, 2015 22:28
-
-
Save cstenac/4984177 to your computer and use it in GitHub Desktop.
Simple Hive UDF (1)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** A simple UDF to convert Celcius to Fahrenheit */ | |
public class ConvertToCelcius extends UDF { | |
public double evaluate(double value) { | |
return (value - 32) / 1.8; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment