public class UDFDate extends UDF
Constructor and Description |
---|
UDFDate() |
Modifier and Type | Method and Description |
---|---|
Text |
evaluate(DateWritable d) |
Text |
evaluate(Text dateString)
Get the date part of a date time string.
|
Text |
evaluate(TimestampWritable i) |
getRequiredFiles, getRequiredJars, getResolver, setResolver
public Text evaluate(Text dateString)
dateString
- the date string in the format of "yyyy-MM-dd HH:mm:ss" or
"yyyy-MM-dd".public Text evaluate(DateWritable d)
public Text evaluate(TimestampWritable i)
Copyright © 2012 The Apache Software Foundation