brickhouse.udf.date
Class AddDaysUDF

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.UDF
      extended by 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


Constructor Summary
AddDaysUDF()
           
 
Method Summary
 String evaluate(String dateStr, int numDays)
           
 
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
 

Constructor Detail

AddDaysUDF

public AddDaysUDF()
Method Detail

evaluate

public String evaluate(String dateStr,
                       int numDays)


Copyright © 2013. All rights reserved.