org.apache.hadoop.hive.ql.udf
Class UDFMinute

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.UDF
      extended by org.apache.hadoop.hive.ql.udf.UDFMinute

public class UDFMinute
extends UDF


Constructor Summary
UDFMinute()
           
 
Method Summary
 org.apache.hadoop.io.IntWritable evaluate(org.apache.hadoop.io.Text dateString)
          Get the minute from a date string.
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.UDF
getResolver, setResolver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDFMinute

public UDFMinute()
Method Detail

evaluate

public org.apache.hadoop.io.IntWritable evaluate(org.apache.hadoop.io.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.


Copyright © 2009 The Apache Software Foundation