public static class FirstValueAggFunction.DecimalFirstValueAggFunction extends FirstValueAggFunction<DecimalData>
FirstValueAggFunction.BooleanFirstValueAggFunction, FirstValueAggFunction.ByteFirstValueAggFunction, FirstValueAggFunction.DecimalFirstValueAggFunction, FirstValueAggFunction.DoubleFirstValueAggFunction, FirstValueAggFunction.FloatFirstValueAggFunction, FirstValueAggFunction.IntFirstValueAggFunction, FirstValueAggFunction.LongFirstValueAggFunction, FirstValueAggFunction.ShortFirstValueAggFunction, FirstValueAggFunction.StringFirstValueAggFunction
Constructor and Description |
---|
DecimalFirstValueAggFunction(DecimalDataTypeInfo decimalTypeInfo) |
Modifier and Type | Method and Description |
---|---|
void |
accumulate(GenericRowData acc,
DecimalData value) |
void |
accumulate(GenericRowData acc,
DecimalData value,
Long order) |
TypeInformation<DecimalData> |
getResultType()
Returns the
TypeInformation of the UserDefinedAggregateFunction 's result. |
accumulate, accumulate, createAccumulator, getAccumulatorType, getValue, isDeterministic, resetAccumulator
getKind, getRequirements, getTypeInference, requiresOver
close, functionIdentifier, open, toString
public DecimalFirstValueAggFunction(DecimalDataTypeInfo decimalTypeInfo)
public void accumulate(GenericRowData acc, DecimalData value)
public void accumulate(GenericRowData acc, DecimalData value, Long order)
public TypeInformation<DecimalData> getResultType()
UserDefinedAggregateFunction
TypeInformation
of the UserDefinedAggregateFunction
's result.getResultType
in class UserDefinedAggregateFunction<DecimalData,GenericRowData>
TypeInformation
of the UserDefinedAggregateFunction
's result or
null
if the result type should be automatically inferred.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.