public class UDFWeekOfYear extends UDF
| Constructor and Description |
|---|
UDFWeekOfYear() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.io.IntWritable |
evaluate(DateWritable d) |
org.apache.hadoop.io.IntWritable |
evaluate(org.apache.hadoop.io.Text dateString)
Get the week of the year from a date string.
|
org.apache.hadoop.io.IntWritable |
evaluate(TimestampWritable t) |
getRequiredFiles, getRequiredJars, getResolver, setResolverpublic org.apache.hadoop.io.IntWritable evaluate(org.apache.hadoop.io.Text dateString)
dateString - the dateString in the format of "yyyy-MM-dd HH:mm:ss" or
"yyyy-MM-dd".public org.apache.hadoop.io.IntWritable evaluate(DateWritable d)
public org.apache.hadoop.io.IntWritable evaluate(TimestampWritable t)
Copyright © 2017 The Apache Software Foundation. All rights reserved.