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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.vector.expressions.MathExpr

public class MathExpr
extends Object

Math expression evaluation helper functions. Some of these are referenced from ColumnUnaryFunc.txt.


Constructor Summary
MathExpr()
           
 
Method Summary
static long abs(long v)
           
static long doubleToTimestamp(double v)
           
static long fromTimestamp(long v)
           
static double fromTimestampToDouble(long v)
           
static double log2(double d)
           
static long longToTimestamp(long v)
           
static void NaNToNull(DoubleColumnVector v, int[] sel, boolean selectedInUse, int n)
           
static void NaNToNull(DoubleColumnVector v, int[] sel, boolean selectedInUse, int n, boolean convertInfinity)
           
static double round(double d)
           
static double sign(double v)
           
static double sign(long v)
           
static long toBool(double v)
           
static long toBool(long v)
           
static int writeLongToUTF8(byte[] result, long i)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathExpr

public MathExpr()
Method Detail

round

public static double round(double d)

log2

public static double log2(double d)

abs

public static long abs(long v)

sign

public static double sign(double v)

sign

public static double sign(long v)

toBool

public static long toBool(long v)

toBool

public static long toBool(double v)

longToTimestamp

public static long longToTimestamp(long v)

doubleToTimestamp

public static long doubleToTimestamp(double v)

fromTimestamp

public static long fromTimestamp(long v)

fromTimestampToDouble

public static double fromTimestampToDouble(long v)

writeLongToUTF8

public static int writeLongToUTF8(byte[] result,
                                  long i)

NaNToNull

public static void NaNToNull(DoubleColumnVector v,
                             int[] sel,
                             boolean selectedInUse,
                             int n)

NaNToNull

public static void NaNToNull(DoubleColumnVector v,
                             int[] sel,
                             boolean selectedInUse,
                             int n,
                             boolean convertInfinity)


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