org.apache.hadoop.hive.ql.udf
Class UDFMinute
java.lang.Object
org.apache.hadoop.hive.ql.exec.UDF
org.apache.hadoop.hive.ql.udf.UDFMinute
public class UDFMinute
- extends UDF
UDFMinute.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UDFMinute
public UDFMinute()
evaluate
public IntWritable evaluate(Text dateString)
- Get the minute from a date string.
- Parameters:
dateString
- the dateString in the format of "yyyy-MM-dd HH:mm:ss" or
"yyyy-MM-dd".
- Returns:
- an int from 0 to 59. null if the dateString is not a valid date
string.
evaluate
public IntWritable evaluate(TimestampWritable t)
Copyright © 2012 The Apache Software Foundation