public static class LastValueAggFunction.DecimalLastValueAggFunction extends LastValueAggFunction<DecimalData>
LastValueAggFunction.BooleanLastValueAggFunction, LastValueAggFunction.ByteLastValueAggFunction, LastValueAggFunction.DecimalLastValueAggFunction, LastValueAggFunction.DoubleLastValueAggFunction, LastValueAggFunction.FloatLastValueAggFunction, LastValueAggFunction.IntLastValueAggFunction, LastValueAggFunction.LongLastValueAggFunction, LastValueAggFunction.ShortLastValueAggFunction, LastValueAggFunction.StringLastValueAggFunction
Constructor and Description |
---|
DecimalLastValueAggFunction(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 DecimalLastValueAggFunction(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.