public class UDFDateAdd extends UDF
Constructor and Description |
---|
UDFDateAdd() |
Modifier and Type | Method and Description |
---|---|
Text |
evaluate(DateWritable d,
IntWritable days) |
Text |
evaluate(Text dateString1,
IntWritable days)
Add a number of days to the date.
|
Text |
evaluate(TimestampWritable t,
IntWritable days) |
getRequiredFiles, getRequiredJars, getResolver, setResolver
public Text evaluate(Text dateString1, IntWritable days)
dateString1
- the date string in the format of "yyyy-MM-dd HH:mm:ss" or
"yyyy-MM-dd".days
- The number of days to add.public Text evaluate(DateWritable d, IntWritable days)
public Text evaluate(TimestampWritable t, IntWritable days)
Copyright © 2012 The Apache Software Foundation