public class CastStringToDecimal extends VectorExpression
VectorExpression.Type
childExpressions, inputTypes, outputType
Constructor and Description |
---|
CastStringToDecimal() |
CastStringToDecimal(int inputColumn,
int outputColumn) |
Modifier and Type | Method and Description |
---|---|
void |
evaluate(VectorizedRowBatch batch)
This is the primary method to implement expression logic.
|
protected void |
func(DecimalColumnVector outV,
BytesColumnVector inV,
int i)
Convert input string to a decimal, at position i in the respective vectors.
|
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 CastStringToDecimal(int inputColumn, int outputColumn)
public CastStringToDecimal()
protected void func(DecimalColumnVector outV, BytesColumnVector inV, int i)
public void evaluate(VectorizedRowBatch batch)
VectorExpression
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.