public abstract class VectorUDFTimestampFieldDate extends VectorExpression
VectorExpression.Type
Modifier and Type | Field and Description |
---|---|
protected Calendar |
calendar |
protected int |
colNum |
protected int |
field |
protected int |
outputColumn |
childExpressions, inputTypes, outputType
Constructor and Description |
---|
VectorUDFTimestampFieldDate() |
VectorUDFTimestampFieldDate(int field,
int colNum,
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.
|
int |
getColNum() |
protected long |
getDateField(long days) |
VectorExpressionDescriptor.Descriptor |
getDescriptor() |
int |
getField() |
int |
getOutputColumn()
Returns the index of the output column in the array
of column vectors.
|
String |
getOutputType()
Returns type of the output column.
|
void |
setColNum(int colNum) |
void |
setField(int field) |
void |
setOutputColumn(int outputColumn) |
evaluateChildren, getChildExpressions, getInputTypes, init, setChildExpressions, setInputTypes, setOutputType, toString
protected int colNum
protected int outputColumn
protected int field
protected final transient Calendar calendar
public VectorUDFTimestampFieldDate(int field, int colNum, int outputColumn)
public VectorUDFTimestampFieldDate()
protected long getDateField(long days)
public void evaluate(org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch batch)
VectorExpression
evaluate
in class VectorExpression
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 int getField()
public void setField(int field)
public void setOutputColumn(int outputColumn)
public VectorExpressionDescriptor.Descriptor getDescriptor()
getDescriptor
in class VectorExpression
Copyright © 2017 The Apache Software Foundation. All rights reserved.