brickhouse.udf.date
Class AddDaysUDF
java.lang.Object
org.apache.hadoop.hive.ql.exec.UDF
brickhouse.udf.date.AddDaysUDF
public class AddDaysUDF
- extends org.apache.hadoop.hive.ql.exec.UDF
Simple date add UDF.
Would use the Hive standard function, but that assumes a
date format of "YYYY-MM-DD", and we would prefer "YYYYMMDD"
and it is too awkward to include lots of substring functions in our hive
| Methods inherited from class org.apache.hadoop.hive.ql.exec.UDF |
getRequiredFiles, getRequiredJars, getResolver, setResolver |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddDaysUDF
public AddDaysUDF()
evaluate
public String evaluate(String dateStr,
int numDays)
Copyright © 2013. All rights reserved.