org.apache.hadoop.hive.ql.exec.vector.expressions.gen
Class IfExprDoubleScalarDoubleScalar

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

public class IfExprDoubleScalarDoubleScalar
extends VectorExpression

Compute IF(expr1, expr2, expr3) for 3 input expressions. The first is always a boolean (LongColumnVector). The second is a constant value. The third is a constant value.

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
IfExprDoubleScalarDoubleScalar()
           
IfExprDoubleScalarDoubleScalar(int arg1Column, double arg2Scalar, double arg3Scalar, int outputColumn)
           
 
Method Summary
 void evaluate(VectorizedRowBatch batch)
          This is the primary method to implement expression logic.
 int getArg1Column()
           
 double getArg2Scalar()
           
 double getArg3Scalar()
           
 VectorExpressionDescriptor.Descriptor getDescriptor()
           
 int getOutputColumn()
          Returns the index of the output column in the array of column vectors.
 String getOutputType()
          Returns type of the output column.
 void setArg1Column(int colNum)
           
 void setArg2Scalar(double value)
           
 void setArg3Scalar(double value)
           
 void setOutputColumn(int outputColumn)
           
 
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

IfExprDoubleScalarDoubleScalar

public IfExprDoubleScalarDoubleScalar(int arg1Column,
                                      double arg2Scalar,
                                      double arg3Scalar,
                                      int outputColumn)

IfExprDoubleScalarDoubleScalar

public IfExprDoubleScalarDoubleScalar()
Method Detail

evaluate

public void evaluate(VectorizedRowBatch batch)
Description copied from class: VectorExpression
This is the primary method to implement expression logic.

Specified by:
evaluate in class VectorExpression

getOutputColumn

public int getOutputColumn()
Description copied from class: VectorExpression
Returns the index of the output column in the array of column vectors. If not applicable, -1 is returned.

Specified by:
getOutputColumn in class VectorExpression
Returns:
Index of the output column

getOutputType

public String getOutputType()
Description copied from class: VectorExpression
Returns type of the output column.

Overrides:
getOutputType in class VectorExpression

getArg1Column

public int getArg1Column()

setArg1Column

public void setArg1Column(int colNum)

getArg2Scalar

public double getArg2Scalar()

setArg2Scalar

public void setArg2Scalar(double value)

getArg3Scalar

public double getArg3Scalar()

setArg3Scalar

public void setArg3Scalar(double value)

setOutputColumn

public void setOutputColumn(int outputColumn)

getDescriptor

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


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