public class CastStringToLong extends VectorExpression
Modifier and Type | Field and Description |
---|---|
protected PrimitiveObjectInspector.PrimitiveCategory |
integerPrimitiveCategory |
childExpressions, inputDataTypePhysicalVariations, inputTypeInfos, outputColumnNum, outputDataTypePhysicalVariation, outputTypeInfo
Constructor and Description |
---|
CastStringToLong() |
CastStringToLong(int inputColumn,
int outputColumnNum) |
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 void |
func(org.apache.hadoop.hive.ql.exec.vector.LongColumnVector outputColVector,
org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector inputColVector,
int batchIndex)
Convert input string to a long, at position i in the respective vectors.
|
VectorExpressionDescriptor.Descriptor |
getDescriptor() |
void |
transientInit() |
String |
vectorExpressionParameters() |
displayArrayOfUtf8ByteArrays, displayUtf8Bytes, doTransientInit, doTransientInit, evaluateChildren, getChildExpressions, getColumnParamString, getDoubleValueParamString, getInputDataTypePhysicalVariations, getInputTypeInfos, getLongValueParamString, getOutputColumnNum, getOutputColumnVectorType, getOutputDataTypePhysicalVariation, getOutputTypeInfo, getParamTypeString, getTypeName, init, setChildExpressions, setInputDataTypePhysicalVariations, setInputTypeInfos, setOutputDataTypePhysicalVariation, setOutputTypeInfo, supportsCheckedExecution, toString
protected transient PrimitiveObjectInspector.PrimitiveCategory integerPrimitiveCategory
public CastStringToLong(int inputColumn, int outputColumnNum)
public CastStringToLong()
public void transientInit() throws HiveException
transientInit
in class VectorExpression
HiveException
protected void func(org.apache.hadoop.hive.ql.exec.vector.LongColumnVector outputColVector, org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector inputColVector, int batchIndex)
public void evaluate(org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch batch) throws HiveException
VectorExpression
evaluate
in class VectorExpression
HiveException
public String vectorExpressionParameters()
vectorExpressionParameters
in class VectorExpression
public VectorExpressionDescriptor.Descriptor getDescriptor()
getDescriptor
in class VectorExpression
Copyright © 2019 The Apache Software Foundation. All rights reserved.