public class UDFFromUnixTime extends UDF
| Constructor and Description |
|---|
UDFFromUnixTime() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.io.Text |
evaluate(org.apache.hadoop.io.IntWritable unixtime) |
org.apache.hadoop.io.Text |
evaluate(org.apache.hadoop.io.IntWritable unixtime,
org.apache.hadoop.io.Text format)
Convert UnixTime to a string format.
|
org.apache.hadoop.io.Text |
evaluate(org.apache.hadoop.io.LongWritable unixtime)
Convert UnixTime to a string format.
|
org.apache.hadoop.io.Text |
evaluate(org.apache.hadoop.io.LongWritable unixtime,
org.apache.hadoop.io.Text format)
Convert UnixTime to a string format.
|
getRequiredFiles, getRequiredJars, getResolver, setResolverpublic org.apache.hadoop.io.Text evaluate(org.apache.hadoop.io.IntWritable unixtime)
public org.apache.hadoop.io.Text evaluate(org.apache.hadoop.io.LongWritable unixtime,
org.apache.hadoop.io.Text format)
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
.htmlpublic org.apache.hadoop.io.Text evaluate(org.apache.hadoop.io.LongWritable unixtime)
unixtime - The number of seconds from 1970-01-01 00:00:00public org.apache.hadoop.io.Text evaluate(org.apache.hadoop.io.IntWritable unixtime,
org.apache.hadoop.io.Text format)
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
.htmlCopyright © 2019 The Apache Software Foundation. All Rights Reserved.