public class VectorPTFEvaluatorDecimalSum extends VectorPTFEvaluatorAbstractSum<HiveDecimalWritable>
| Modifier and Type | Field and Description |
|---|---|
protected HiveDecimalWritable |
temp |
isGroupResultNull, previousRange, previousSum, suminputColumnNum, LOG, outputColumnNum| Constructor and Description |
|---|
VectorPTFEvaluatorDecimalSum(WindowFrameDef windowFrameDef,
VectorExpression inputVecExpr,
int outputColumnNum) |
| Modifier and Type | Method and Description |
|---|---|
protected HiveDecimalWritable |
computeValue(HiveDecimalWritable number) |
void |
evaluateGroupBatch(VectorizedRowBatch batch) |
ColumnVector.Type |
getResultColumnVectorType() |
HiveDecimalWritable |
minus(HiveDecimalWritable t1,
HiveDecimalWritable t2) |
void |
onResultCalculated(Object result,
Range range)
This method is called by VectorPTFGroupBatches once the calculation is finished for a given
row/range, but before the next calculation is invoked.
|
HiveDecimalWritable |
plus(HiveDecimalWritable t1,
HiveDecimalWritable t2) |
void |
resetEvaluator() |
canRunOptimizedCalculation, getGroupResult, isGroupResultNull, onPartitionEnd, runOnRange, streamsResultdoLastBatchWork, evaluateInputExpr, getNullsLast, getOutputColumnNum, isCacheableForRange, mapCustomColumns, setNullsLastprotected HiveDecimalWritable temp
public VectorPTFEvaluatorDecimalSum(WindowFrameDef windowFrameDef, VectorExpression inputVecExpr, int outputColumnNum)
public void evaluateGroupBatch(VectorizedRowBatch batch) throws HiveException
evaluateGroupBatch in class VectorPTFEvaluatorBaseHiveExceptionpublic ColumnVector.Type getResultColumnVectorType()
getResultColumnVectorType in class VectorPTFEvaluatorBaseprotected HiveDecimalWritable computeValue(HiveDecimalWritable number)
computeValue in class VectorPTFEvaluatorAbstractSum<HiveDecimalWritable>public HiveDecimalWritable plus(HiveDecimalWritable t1, HiveDecimalWritable t2)
plus in class VectorPTFEvaluatorAbstractSum<HiveDecimalWritable>public HiveDecimalWritable minus(HiveDecimalWritable t1, HiveDecimalWritable t2)
minus in class VectorPTFEvaluatorAbstractSum<HiveDecimalWritable>public void onResultCalculated(Object result, Range range)
VectorPTFEvaluatorBaseonResultCalculated in class VectorPTFEvaluatorAbstractSum<HiveDecimalWritable>public void resetEvaluator()
resetEvaluator in class VectorPTFEvaluatorBaseCopyright © 2024 The Apache Software Foundation. All rights reserved.