public static class LastValueWithRetractAggFunction.DecimalLastValueWithRetractAggFunction extends LastValueWithRetractAggFunction<Decimal>
LastValueWithRetractAggFunction.BooleanLastValueWithRetractAggFunction, LastValueWithRetractAggFunction.ByteLastValueWithRetractAggFunction, LastValueWithRetractAggFunction.DecimalLastValueWithRetractAggFunction, LastValueWithRetractAggFunction.DoubleLastValueWithRetractAggFunction, LastValueWithRetractAggFunction.FloatLastValueWithRetractAggFunction, LastValueWithRetractAggFunction.IntLastValueWithRetractAggFunction, LastValueWithRetractAggFunction.LongLastValueWithRetractAggFunction, LastValueWithRetractAggFunction.ShortLastValueWithRetractAggFunction, LastValueWithRetractAggFunction.StringLastValueWithRetractAggFunction
Constructor and Description |
---|
DecimalLastValueWithRetractAggFunction(DecimalTypeInfo decimalTypeInfo) |
Modifier and Type | Method and Description |
---|---|
void |
accumulate(GenericRow acc,
Decimal value) |
void |
accumulate(GenericRow acc,
Decimal value,
Long order) |
protected TypeSerializer<Decimal> |
createValueSerializer() |
TypeInformation<Decimal> |
getResultType()
Returns the
TypeInformation of the UserDefinedAggregateFunction 's result. |
accumulate, accumulate, createAccumulator, getAccumulatorType, getValue, resetAccumulator, retract, retract
getKind, getRequirements, requiresOver
close, functionIdentifier, open, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isDeterministic
public DecimalLastValueWithRetractAggFunction(DecimalTypeInfo decimalTypeInfo)
public void accumulate(GenericRow acc, Decimal value) throws Exception
Exception
public void accumulate(GenericRow acc, Decimal value, Long order) throws Exception
Exception
public TypeInformation<Decimal> getResultType()
UserDefinedAggregateFunction
TypeInformation
of the UserDefinedAggregateFunction
's result.getResultType
in class UserDefinedAggregateFunction<Decimal,GenericRow>
TypeInformation
of the UserDefinedAggregateFunction
's result or
null
if the result type should be automatically inferred.protected TypeSerializer<Decimal> createValueSerializer()
createValueSerializer
in class LastValueWithRetractAggFunction<Decimal>
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.