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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.vector.expressions.VectorExpression
      extended by org.apache.hadoop.hive.ql.exec.vector.expressions.MathFuncDoubleToDouble
          extended by org.apache.hadoop.hive.ql.exec.vector.expressions.RoundWithNumDigitsDoubleToDouble
All Implemented Interfaces:
Serializable, ISetLongArg

public class RoundWithNumDigitsDoubleToDouble
extends MathFuncDoubleToDouble
implements ISetLongArg

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
RoundWithNumDigitsDoubleToDouble()
           
RoundWithNumDigitsDoubleToDouble(int colNum, long scalarVal, int outputColumn)
           
 
Method Summary
 double func(double d)
           
 org.apache.hadoop.io.IntWritable getDecimalPlaces()
           
 VectorExpressionDescriptor.Descriptor getDescriptor()
           
 void setArg(long l)
           
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.vector.expressions.MathFuncDoubleToDouble
evaluate, getColNum, getOutputColumn, getOutputType, setColNum, setOutputColumn
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.vector.expressions.VectorExpression
getChildExpressions, getInputTypes, setChildExpressions, setInputTypes, setOutputType, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoundWithNumDigitsDoubleToDouble

public RoundWithNumDigitsDoubleToDouble(int colNum,
                                        long scalarVal,
                                        int outputColumn)

RoundWithNumDigitsDoubleToDouble

public RoundWithNumDigitsDoubleToDouble()
Method Detail

func

public double func(double d)

getDecimalPlaces

public org.apache.hadoop.io.IntWritable getDecimalPlaces()

setArg

public void setArg(long l)
Specified by:
setArg in interface ISetLongArg

getDescriptor

public VectorExpressionDescriptor.Descriptor getDescriptor()
Specified by:
getDescriptor in class VectorExpression


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