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