org.apache.hadoop.hive.ql.udf
Class UDFFromUnixTime
java.lang.Object
org.apache.hadoop.hive.ql.exec.UDF
org.apache.hadoop.hive.ql.udf.UDFFromUnixTime
public class UDFFromUnixTime
- extends UDF
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UDFFromUnixTime
public UDFFromUnixTime()
evaluate
public String evaluate(Integer unixtime)
evaluate
public String evaluate(Integer unixtime,
String format)
- Convert UnixTime to a string format.
- Parameters:
unixtime
- The number of seconds from 1970-01-01 00:00:00format
- See http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
- Returns:
- a String in the format specified.
Copyright © 2009 The Apache Software Foundation