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

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

public class CastDecimalToTimestamp
extends FuncDecimalToLong

Type cast decimal to timestamp. The decimal value is interpreted as NNNN.DDDDDDDDD where NNNN is a number of seconds and DDDDDDDDD is a number of nano-seconds.

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.VectorExpression
childExpressions, inputTypes, outputType
 
Constructor Summary
CastDecimalToTimestamp()
           
CastDecimalToTimestamp(int inputColumn, int outputColumn)
           
 
Method Summary
protected  void func(LongColumnVector outV, DecimalColumnVector inV, int i)
           
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.vector.expressions.FuncDecimalToLong
evaluate, getDescriptor, getInputColumn, getOutputColumn, getOutputType, setInputColumn, 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

CastDecimalToTimestamp

public CastDecimalToTimestamp(int inputColumn,
                              int outputColumn)

CastDecimalToTimestamp

public CastDecimalToTimestamp()
Method Detail

func

protected void func(LongColumnVector outV,
                    DecimalColumnVector inV,
                    int i)
Specified by:
func in class FuncDecimalToLong


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