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
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hive.ql.exec.vector.expressions.VectorExpression
childExpressions, inputTypes, outputType
 
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
cleanup, evaluate, getColNum, getOutputColumn, getOutputType, setColNum, 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

RoundWithNumDigitsDoubleToDouble

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

RoundWithNumDigitsDoubleToDouble

public RoundWithNumDigitsDoubleToDouble()
Method Detail

func

public double func(double d)
Specified by:
func in class MathFuncDoubleToDouble

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.