public class VectorizationContext extends Object
Modifier and Type | Field and Description |
---|---|
static Pattern |
charTypePattern |
static Pattern |
charVarcharTypePattern |
static Pattern |
decimalTypePattern |
static Pattern |
varcharTypePattern |
Constructor and Description |
---|
VectorizationContext(String contextName) |
VectorizationContext(String contextName,
List<String> initialColumnNames) |
VectorizationContext(String contextName,
VectorizationContext vContext) |
public static final Pattern decimalTypePattern
public static final Pattern charTypePattern
public static final Pattern varcharTypePattern
public static final Pattern charVarcharTypePattern
public VectorizationContext(String contextName, List<String> initialColumnNames)
public VectorizationContext(String contextName)
public VectorizationContext(String contextName, VectorizationContext vContext)
public void addInitialColumn(String columnName)
public void finishedAddingInitialColumns()
public void resetProjectionColumns()
public void addProjectionColumn(String columnName, int vectorBatchColIndex)
protected int getInputColumnIndex(String name) throws HiveException
HiveException
protected int getInputColumnIndex(ExprNodeColumnDesc colExpr) throws HiveException
HiveException
public int allocateScratchColumn(String hiveTypeName)
public int[] currentScratchColumns()
public VectorExpression[] getVectorExpressions(List<ExprNodeDesc> exprNodes) throws HiveException
HiveException
public VectorExpression[] getVectorExpressions(List<ExprNodeDesc> exprNodes, VectorExpressionDescriptor.Mode mode) throws HiveException
HiveException
public VectorExpression getVectorExpression(ExprNodeDesc exprDesc) throws HiveException
HiveException
public VectorExpression getVectorExpression(ExprNodeDesc exprDesc, VectorExpressionDescriptor.Mode mode) throws HiveException
exprDesc,
- Expression descriptionmode
- VectorExpression
HiveException
public static boolean isNonVectorizedPathUDF(ExprNodeGenericFuncDesc expr)
public static String arg0Type(ExprNodeGenericFuncDesc expr)
public static boolean isCustomUDF(ExprNodeGenericFuncDesc expr)
public static boolean isStringFamily(String resultType)
public static boolean isDatetimeFamily(String resultType)
public static boolean isTimestampFamily(String resultType)
public static boolean isDateFamily(String resultType)
public static boolean isIntervalYearMonthFamily(String resultType)
public static boolean isIntervalDayTimeFamily(String resultType)
public static boolean isFloatFamily(String resultType)
public static boolean isIntFamily(String resultType)
public static boolean isDecimalFamily(String colType)
public static ColumnVector.Type getColumnVectorTypeFromTypeInfo(TypeInfo typeInfo) throws HiveException
HiveException
public VectorAggregateExpression getAggregatorExpression(AggregationDesc desc, boolean isReduce) throws HiveException
HiveException
public int firstOutputColumnIndex()
Copyright © 2017 The Apache Software Foundation. All rights reserved.