Package io.trino.operator.aggregation
Class DecimalSumAggregation
- java.lang.Object
-
- io.trino.metadata.SqlAggregationFunction
-
- io.trino.operator.aggregation.DecimalSumAggregation
-
- All Implemented Interfaces:
SqlFunction
public class DecimalSumAggregation extends SqlAggregationFunction
-
-
Field Summary
Fields Modifier and Type Field Description static DecimalSumAggregationDECIMAL_SUM_AGGREGATION
-
Constructor Summary
Constructors Constructor Description DecimalSumAggregation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcombine(LongDecimalWithOverflowState state, LongDecimalWithOverflowState otherState)List<TypeSignature>getIntermediateTypes(FunctionBinding functionBinding)static voidinputLongDecimal(Type type, LongDecimalWithOverflowState state, Block block, int position)static voidinputShortDecimal(Type type, LongDecimalWithOverflowState state, Block block, int position)static voidoutputLongDecimal(DecimalType type, LongDecimalWithOverflowState state, BlockBuilder out)InternalAggregationFunctionspecialize(FunctionBinding functionBinding)-
Methods inherited from class io.trino.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.trino.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:
getIntermediateTypesin classSqlAggregationFunction
-
specialize
public InternalAggregationFunction specialize(FunctionBinding functionBinding)
- Overrides:
specializein 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)
-
-