Class DecimalSumAggregation
- java.lang.Object
-
- io.prestosql.metadata.SqlAggregationFunction
-
- io.prestosql.operator.aggregation.DecimalSumAggregation
-
- All Implemented Interfaces:
SqlFunction
public class DecimalSumAggregation extends SqlAggregationFunction
-
-
Field Summary
Fields Modifier and Type Field Description static DecimalSumAggregation
DECIMAL_SUM_AGGREGATION
-
Constructor Summary
Constructors Constructor Description DecimalSumAggregation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
combine(LongDecimalWithOverflowState state, LongDecimalWithOverflowState otherState)
List<TypeSignature>
getIntermediateTypes(FunctionBinding functionBinding)
static void
inputLongDecimal(Type type, LongDecimalWithOverflowState state, Block block, int position)
static void
inputShortDecimal(Type type, LongDecimalWithOverflowState state, Block block, int position)
static void
outputLongDecimal(DecimalType type, LongDecimalWithOverflowState state, BlockBuilder out)
InternalAggregationFunction
specialize(FunctionBinding functionBinding)
-
Methods inherited from class io.prestosql.metadata.SqlAggregationFunction
createFunctionByAnnotations, createFunctionsByAnnotations, getAggregationMetadata, getFunctionMetadata, specialize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.prestosql.metadata.SqlFunction
getFunctionDependencies, getFunctionDependencies
-
-
-
-
Field Detail
-
DECIMAL_SUM_AGGREGATION
public static final DecimalSumAggregation DECIMAL_SUM_AGGREGATION
-
-
Method Detail
-
getIntermediateTypes
public List<TypeSignature> getIntermediateTypes(FunctionBinding functionBinding)
- Overrides:
getIntermediateTypes
in classSqlAggregationFunction
-
specialize
public InternalAggregationFunction specialize(FunctionBinding functionBinding)
- Overrides:
specialize
in classSqlAggregationFunction
-
inputShortDecimal
public static void inputShortDecimal(Type type, LongDecimalWithOverflowState state, Block block, int position)
-
inputLongDecimal
public static void inputLongDecimal(Type type, LongDecimalWithOverflowState state, Block block, int position)
-
combine
public static void combine(LongDecimalWithOverflowState state, LongDecimalWithOverflowState otherState)
-
outputLongDecimal
public static void outputLongDecimal(DecimalType type, LongDecimalWithOverflowState state, BlockBuilder out)
-
-