|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.exec.UDF
org.apache.hadoop.hive.ql.udf.UDFDateSub
public class UDFDateSub
UDFDateSub.
Constructor Summary | |
---|---|
UDFDateSub()
|
Method Summary | |
---|---|
org.apache.hadoop.io.Text |
evaluate(org.apache.hadoop.io.Text dateString1,
org.apache.hadoop.io.IntWritable days)
Subtract a number of days to the date. |
Methods inherited from class org.apache.hadoop.hive.ql.exec.UDF |
---|
getResolver, setResolver |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UDFDateSub()
Method Detail |
---|
public org.apache.hadoop.io.Text evaluate(org.apache.hadoop.io.Text dateString1, org.apache.hadoop.io.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 subtract.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |