public class DecimalAverageAggregation extends SqlAggregationFunction
Modifier and Type | Field and Description |
---|---|
static DecimalAverageAggregation |
DECIMAL_AVERAGE_AGGREGATION |
Constructor and Description |
---|
DecimalAverageAggregation() |
Modifier and Type | Method and Description |
---|---|
static BigDecimal |
average(LongDecimalWithOverflowAndLongState state,
DecimalType type) |
static void |
combine(LongDecimalWithOverflowAndLongState state,
LongDecimalWithOverflowAndLongState otherState) |
String |
getDescription() |
static void |
inputLongDecimal(Type type,
LongDecimalWithOverflowAndLongState state,
Block block,
int position) |
static void |
inputShortDecimal(Type type,
LongDecimalWithOverflowAndLongState state,
Block block,
int position) |
static void |
outputLongDecimal(DecimalType type,
LongDecimalWithOverflowAndLongState state,
BlockBuilder out) |
static void |
outputShortDecimal(DecimalType type,
LongDecimalWithOverflowAndLongState state,
BlockBuilder out) |
InternalAggregationFunction |
specialize(BoundVariables boundVariables,
int arity,
TypeManager typeManager,
FunctionRegistry functionRegistry) |
createFunctionByAnnotations, createFunctionsByAnnotations, getSignature, isDeterministic, isHidden
public static final DecimalAverageAggregation DECIMAL_AVERAGE_AGGREGATION
public String getDescription()
public InternalAggregationFunction specialize(BoundVariables boundVariables, int arity, TypeManager typeManager, FunctionRegistry functionRegistry)
specialize
in class SqlAggregationFunction
public static void inputShortDecimal(Type type, LongDecimalWithOverflowAndLongState state, Block block, int position)
public static void inputLongDecimal(Type type, LongDecimalWithOverflowAndLongState state, Block block, int position)
public static void combine(LongDecimalWithOverflowAndLongState state, LongDecimalWithOverflowAndLongState otherState)
public static void outputShortDecimal(DecimalType type, LongDecimalWithOverflowAndLongState state, BlockBuilder out)
public static void outputLongDecimal(DecimalType type, LongDecimalWithOverflowAndLongState state, BlockBuilder out)
public static BigDecimal average(LongDecimalWithOverflowAndLongState state, DecimalType type)
Copyright © 2012–2019. All rights reserved.