public abstract class VectorPTFEvaluatorAbstractLeadLag extends VectorPTFEvaluatorBase
| Modifier and Type | Field and Description |
|---|---|
protected int |
amt |
protected Object |
defaultValue |
protected int |
defaultValueColumn |
protected ColumnVector.Type |
type |
inputColumnNum, LOG, outputColumnNum| Constructor and Description |
|---|
VectorPTFEvaluatorAbstractLeadLag(WindowFrameDef windowFrameDef,
VectorExpression inputVecExpr,
int outputColumnNum,
ColumnVector.Type type,
int amt,
VectorExpression defaultValueExpression) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRunOptimizedCalculation(int rowNum,
Range range)
Whether the evaluator can calculate the result for a given range.
|
void |
evaluateGroupBatch(VectorizedRowBatch batch) |
protected Object |
getDefaultValue(int rowNum,
VectorPTFGroupBatches batches) |
ColumnVector.Type |
getResultColumnVectorType() |
boolean |
isCacheableForRange()
Whether the results calculated by this evaluator are eligible for caching by PTFValueCache.
|
void |
mapCustomColumns(int[] bufferedColumnMap)
VectorPTFGroupBatches class works on a subset of columns, which are mapped by an array of
changed indices.
|
void |
resetEvaluator() |
boolean |
streamsResult() |
doLastBatchWork, evaluateInputExpr, getGroupResult, getNullsLast, getOutputColumnNum, isGroupResultNull, onPartitionEnd, onResultCalculated, runOnRange, setNullsLastprotected int amt
protected Object defaultValue
protected int defaultValueColumn
protected ColumnVector.Type type
public VectorPTFEvaluatorAbstractLeadLag(WindowFrameDef windowFrameDef, VectorExpression inputVecExpr, int outputColumnNum, ColumnVector.Type type, int amt, VectorExpression defaultValueExpression)
public boolean canRunOptimizedCalculation(int rowNum,
Range range)
VectorPTFEvaluatorBasecanRunOptimizedCalculation in class VectorPTFEvaluatorBaseprotected Object getDefaultValue(int rowNum, VectorPTFGroupBatches batches) throws HiveException
HiveExceptionpublic void evaluateGroupBatch(VectorizedRowBatch batch) throws HiveException
evaluateGroupBatch in class VectorPTFEvaluatorBaseHiveExceptionpublic boolean streamsResult()
streamsResult in class VectorPTFEvaluatorBasepublic ColumnVector.Type getResultColumnVectorType()
getResultColumnVectorType in class VectorPTFEvaluatorBasepublic void resetEvaluator()
resetEvaluator in class VectorPTFEvaluatorBasepublic boolean isCacheableForRange()
VectorPTFEvaluatorBaseisCacheableForRange in class VectorPTFEvaluatorBasepublic void mapCustomColumns(int[] bufferedColumnMap)
VectorPTFEvaluatorBasemapCustomColumns in class VectorPTFEvaluatorBaseCopyright © 2022 The Apache Software Foundation. All rights reserved.