public class VectorUDFDateDiffColScalar extends VectorExpression
VectorExpression.Type
childExpressions, inputTypes, outputType
Constructor and Description |
---|
VectorUDFDateDiffColScalar() |
VectorUDFDateDiffColScalar(int colNum,
Object object,
int outputColumn) |
Modifier and Type | Method and Description |
---|---|
void |
evaluate(org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch batch)
This is the primary method to implement expression logic.
|
protected int |
evaluateDate(org.apache.hadoop.hive.ql.exec.vector.ColumnVector columnVector,
int index) |
protected void |
evaluateString(org.apache.hadoop.hive.ql.exec.vector.ColumnVector columnVector,
org.apache.hadoop.hive.ql.exec.vector.LongColumnVector output,
int i) |
protected int |
evaluateTimestamp(org.apache.hadoop.hive.ql.exec.vector.ColumnVector columnVector,
int index) |
int |
getColNum() |
VectorExpressionDescriptor.Descriptor |
getDescriptor() |
long |
getLongValue() |
int |
getOutputColumn()
Returns the index of the output column in the array
of column vectors.
|
String |
getOutputType()
Returns type of the output column.
|
byte[] |
getStringValue() |
void |
setColNum(int colNum) |
void |
setLongValue(int longValue) |
void |
setOutputColumn(int outputColumn) |
void |
setStringValue(byte[] stringValue) |
evaluateChildren, getChildExpressions, getInputTypes, init, setChildExpressions, setInputTypes, setOutputType, toString
public VectorUDFDateDiffColScalar(int colNum, Object object, int outputColumn)
public VectorUDFDateDiffColScalar()
public void evaluate(org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch batch)
VectorExpression
evaluate
in class VectorExpression
protected int evaluateTimestamp(org.apache.hadoop.hive.ql.exec.vector.ColumnVector columnVector, int index)
protected int evaluateDate(org.apache.hadoop.hive.ql.exec.vector.ColumnVector columnVector, int index)
protected void evaluateString(org.apache.hadoop.hive.ql.exec.vector.ColumnVector columnVector, org.apache.hadoop.hive.ql.exec.vector.LongColumnVector output, int i)
public int getOutputColumn()
VectorExpression
getOutputColumn
in class VectorExpression
public String getOutputType()
VectorExpression
getOutputType
in class VectorExpression
public int getColNum()
public void setColNum(int colNum)
public void setOutputColumn(int outputColumn)
public long getLongValue()
public void setLongValue(int longValue)
public byte[] getStringValue()
public void setStringValue(byte[] stringValue)
public VectorExpressionDescriptor.Descriptor getDescriptor()
getDescriptor
in class VectorExpression
Copyright © 2017 The Apache Software Foundation. All rights reserved.