org.apache.hadoop.hive.ql.exec.vector.expressions
Class VectorUDFYearLong

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.vector.expressions.VectorExpression
      extended by org.apache.hadoop.hive.ql.exec.vector.expressions.VectorUDFTimestampFieldLong
          extended by org.apache.hadoop.hive.ql.exec.vector.expressions.VectorUDFYearLong
All Implemented Interfaces:
Serializable

public final class VectorUDFYearLong
extends VectorUDFTimestampFieldLong

Expression to get year as a long. Extends VectorUDFTimestampFieldLong

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.exec.vector.expressions.VectorExpression
VectorExpression.Type
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hive.ql.exec.vector.expressions.VectorUDFTimestampFieldLong
calendar, colNum, field, outputColumn, ts
 
Fields inherited from class org.apache.hadoop.hive.ql.exec.vector.expressions.VectorExpression
childExpressions, inputTypes, outputType
 
Constructor Summary
VectorUDFYearLong()
           
VectorUDFYearLong(int colNum, int outputColumn)
           
 
Method Summary
protected  long getTimestampField(long time)
           
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.vector.expressions.VectorUDFTimestampFieldLong
evaluate, getColNum, getDateField, getDescriptor, getField, getOutputColumn, getOutputType, getTimestamp, setColNum, setField, setOutputColumn
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.vector.expressions.VectorExpression
evaluateChildren, getChildExpressions, getInputTypes, setChildExpressions, setInputTypes, setOutputType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VectorUDFYearLong

public VectorUDFYearLong(int colNum,
                         int outputColumn)

VectorUDFYearLong

public VectorUDFYearLong()
Method Detail

getTimestampField

protected long getTimestampField(long time)
Overrides:
getTimestampField in class VectorUDFTimestampFieldLong


Copyright © 2014 The Apache Software Foundation. All rights reserved.