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

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

public class CastLongToDecimal
extends FuncLongToDecimal

To be used to cast long and boolean to decimal. This works for boolean too because boolean is encoded as 0 for false and 1 for true.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.exec.vector.expressions.VectorExpression
VectorExpression.Type
 
Constructor Summary
CastLongToDecimal()
           
CastLongToDecimal(int inputColumn, int outputColumn)
           
 
Method Summary
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.vector.expressions.FuncLongToDecimal
evaluate, getDescriptor, getInputColumn, getOutputColumn, setInputColumn, setOutputColumn
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.vector.expressions.VectorExpression
getChildExpressions, getInputTypes, getOutputType, setChildExpressions, setInputTypes, setOutputType, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CastLongToDecimal

public CastLongToDecimal()

CastLongToDecimal

public CastLongToDecimal(int inputColumn,
                         int outputColumn)


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