public class VectorPTFEvaluatorDecimalAvg extends VectorPTFEvaluatorAbstractAvg<HiveDecimalWritable>
| Modifier and Type | Field and Description |
|---|---|
protected HiveDecimalWritable |
avg |
protected HiveDecimalWritable |
temp |
isGroupResultNull, nonNullGroupCount, previousCount, previousRange, previousSum, suminputColumnNum, LOG, outputColumnNum| Constructor and Description |
|---|
VectorPTFEvaluatorDecimalAvg(WindowFrameDef windowFrameDef,
VectorExpression inputVecExpr,
int outputColumnNum) |
| Modifier and Type | Method and Description |
|---|---|
protected HiveDecimalWritable |
computeValue(HiveDecimalWritable number) |
protected HiveDecimalWritable |
divide(HiveDecimalWritable number,
long divisor) |
void |
doLastBatchWork() |
void |
evaluateGroupBatch(VectorizedRowBatch batch) |
Object |
getGroupResult() |
ColumnVector.Type |
getResultColumnVectorType() |
HiveDecimalWritable |
minus(HiveDecimalWritable t1,
HiveDecimalWritable t2) |
HiveDecimalWritable |
plus(HiveDecimalWritable t1,
HiveDecimalWritable t2) |
void |
resetEvaluator() |
canRunOptimizedCalculation, isGroupResultNull, onPartitionEnd, onResultCalculated, runOnRange, streamsResultevaluateInputExpr, getNullsLast, getOutputColumnNum, isCacheableForRange, mapCustomColumns, setNullsLastprotected HiveDecimalWritable temp
protected HiveDecimalWritable avg
public VectorPTFEvaluatorDecimalAvg(WindowFrameDef windowFrameDef, VectorExpression inputVecExpr, int outputColumnNum)
public void evaluateGroupBatch(VectorizedRowBatch batch) throws HiveException
evaluateGroupBatch in class VectorPTFEvaluatorBaseHiveExceptionpublic void doLastBatchWork()
doLastBatchWork in class VectorPTFEvaluatorBasepublic ColumnVector.Type getResultColumnVectorType()
getResultColumnVectorType in class VectorPTFEvaluatorBasepublic Object getGroupResult()
getGroupResult in class VectorPTFEvaluatorBaseprotected HiveDecimalWritable computeValue(HiveDecimalWritable number)
computeValue in class VectorPTFEvaluatorAbstractAvg<HiveDecimalWritable>public HiveDecimalWritable plus(HiveDecimalWritable t1, HiveDecimalWritable t2)
plus in class VectorPTFEvaluatorAbstractAvg<HiveDecimalWritable>public HiveDecimalWritable minus(HiveDecimalWritable t1, HiveDecimalWritable t2)
minus in class VectorPTFEvaluatorAbstractAvg<HiveDecimalWritable>protected HiveDecimalWritable divide(HiveDecimalWritable number, long divisor)
divide in class VectorPTFEvaluatorAbstractAvg<HiveDecimalWritable>public void resetEvaluator()
resetEvaluator in class VectorPTFEvaluatorBaseCopyright © 2022 The Apache Software Foundation. All rights reserved.