public class UDFTypeOfDay
extends org.apache.hadoop.hive.ql.exec.UDF
| 限定符和类型 | 字段和说明 |
|---|---|
static Map<String,String> |
dayMap |
static org.joda.time.format.DateTimeFormatter |
DEFAULT_DATE_FORMATTER |
| 构造器和说明 |
|---|
UDFTypeOfDay() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.hadoop.io.IntWritable |
evaluate(org.apache.hadoop.io.Text dateString)
Get whether is holiday or not.
|
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 "yyyyMMdd".public org.apache.hadoop.io.IntWritable evaluate(org.apache.hadoop.hive.serde2.io.TimestampWritable t)
Copyright © 2019. All rights reserved.