public class CastDecimalToDecimal extends VectorExpression
VectorExpression.Type
childExpressions, inputTypes, outputType
Constructor and Description |
---|
CastDecimalToDecimal() |
CastDecimalToDecimal(int inputColumn,
int outputColumn) |
Modifier and Type | Method and Description |
---|---|
protected void |
convert(DecimalColumnVector outV,
DecimalColumnVector inV,
int i)
Convert input decimal value to a decimal with a possibly different precision and scale,
at position i in the respective vectors.
|
void |
evaluate(VectorizedRowBatch batch)
Cast decimal(p1, s1) to decimal(p2, s2).
|
VectorExpressionDescriptor.Descriptor |
getDescriptor() |
int |
getInputColumn() |
int |
getOutputColumn()
Returns the index of the output column in the array
of column vectors.
|
void |
setInputColumn(int inputColumn) |
void |
setOutputColumn(int outputColumn) |
evaluateChildren, getChildExpressions, getInputTypes, getOutputType, setChildExpressions, setInputTypes, setOutputType, toString
public CastDecimalToDecimal(int inputColumn, int outputColumn)
public CastDecimalToDecimal()
protected void convert(DecimalColumnVector outV, DecimalColumnVector inV, int i)
public void evaluate(VectorizedRowBatch batch)
evaluate
in class VectorExpression
public int getOutputColumn()
VectorExpression
getOutputColumn
in class VectorExpression
public void setOutputColumn(int outputColumn)
public int getInputColumn()
public void setInputColumn(int inputColumn)
public VectorExpressionDescriptor.Descriptor getDescriptor()
getDescriptor
in class VectorExpression
Copyright © 2017 The Apache Software Foundation. All rights reserved.