public class UDFDayOfYear
extends org.apache.hadoop.hive.ql.exec.UDF
| 限定符和类型 | 字段和说明 |
|---|---|
static org.joda.time.format.DateTimeFormatter |
DEFAULT_DATE_FORMATTER |
| 构造器和说明 |
|---|
UDFDayOfYear() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.hadoop.io.IntWritable |
evaluate(org.apache.hadoop.io.Text dateString)
Get the day of week from a date string.
|
org.apache.hadoop.io.IntWritable |
evaluate(org.apache.hadoop.hive.serde2.io.TimestampWritable t) |
public static final org.joda.time.format.DateTimeFormatter DEFAULT_DATE_FORMATTER
public org.apache.hadoop.io.IntWritable evaluate(org.apache.hadoop.io.Text dateString)
dateString - the dateString in the format of "yyyy-MM-dd".public org.apache.hadoop.io.IntWritable evaluate(org.apache.hadoop.hive.serde2.io.TimestampWritable t)
Copyright © 2019. All rights reserved.