public class AggregatorAvgBig extends AggregatorMethodWDistinctWFilterWValueBase
distinct, hasFilter, optionalDistinctValueType, optionalFilter
Constructor and Description |
---|
AggregatorAvgBig(AggregationFactoryMethodAvg factory,
int col,
CodegenCtor rowCtor,
CodegenMemberCol membersColumnized,
CodegenClassScope classScope,
Class optionalDistinctValueType,
boolean hasFilter,
ExprNode optionalFilter) |
applyEvalEnterFiltered, applyEvalLeaveFiltered, applyTableEnterFiltered, applyTableLeaveFiltered
applyEvalEnterCodegen, applyEvalLeaveCodegen, applyTableEnterCodegen, applyTableLeaveCodegen, clearCodegen, readCodegen, writeCodegen
public AggregatorAvgBig(AggregationFactoryMethodAvg factory, int col, CodegenCtor rowCtor, CodegenMemberCol membersColumnized, CodegenClassScope classScope, Class optionalDistinctValueType, boolean hasFilter, ExprNode optionalFilter)
protected void applyEvalEnterNonNull(CodegenExpressionRef value, Class valueType, CodegenMethod method, ExprForgeCodegenSymbol symbols, ExprForge[] forges, CodegenClassScope classScope)
applyEvalEnterNonNull
in class AggregatorMethodWDistinctWFilterWValueBase
protected void applyEvalLeaveNonNull(CodegenExpressionRef value, Class valueType, CodegenMethod method, ExprForgeCodegenSymbol symbols, ExprForge[] forges, CodegenClassScope classScope)
applyEvalLeaveNonNull
in class AggregatorMethodWDistinctWFilterWValueBase
protected void applyTableEnterNonNull(CodegenExpressionRef value, Class[] evaluationTypes, CodegenMethod method, CodegenClassScope classScope)
applyTableEnterNonNull
in class AggregatorMethodWDistinctWFilterWValueBase
protected void applyTableLeaveNonNull(CodegenExpressionRef value, Class[] evaluationTypes, CodegenMethod method, CodegenClassScope classScope)
applyTableLeaveNonNull
in class AggregatorMethodWDistinctWFilterWValueBase
protected void clearWODistinct(CodegenMethod method, CodegenClassScope classScope)
clearWODistinct
in class AggregatorMethodWDistinctWFilterBase
public void getValueCodegen(CodegenMethod method, CodegenClassScope classScope)
protected void writeWODistinct(CodegenExpressionRef row, int col, CodegenExpressionRef output, CodegenExpressionRef unitKey, CodegenExpressionRef writer, CodegenMethod method, CodegenClassScope classScope)
writeWODistinct
in class AggregatorMethodWDistinctWFilterBase
protected void readWODistinct(CodegenExpressionRef row, int col, CodegenExpressionRef input, CodegenExpressionRef unitKey, CodegenMethod method, CodegenClassScope classScope)
readWODistinct
in class AggregatorMethodWDistinctWFilterBase
public static BigDecimal getValueBigDecimalDivide(long cnt, MathContext optionalMathContext, BigDecimal sum)
cnt
- countoptionalMathContext
- math ctxsum
- sumCopyright © 2005–2018. All rights reserved.