public static class FirstValueAggFunction.DecimalFirstValueAggFunction extends FirstValueAggFunction<Decimal>
FirstValueAggFunction.BooleanFirstValueAggFunction, FirstValueAggFunction.ByteFirstValueAggFunction, FirstValueAggFunction.DecimalFirstValueAggFunction, FirstValueAggFunction.DoubleFirstValueAggFunction, FirstValueAggFunction.FloatFirstValueAggFunction, FirstValueAggFunction.IntFirstValueAggFunction, FirstValueAggFunction.LongFirstValueAggFunction, FirstValueAggFunction.ShortFirstValueAggFunction, FirstValueAggFunction.StringFirstValueAggFunction
Constructor and Description |
---|
DecimalFirstValueAggFunction(DecimalTypeInfo decimalTypeInfo) |
Modifier and Type | Method and Description |
---|---|
void |
accumulate(GenericRow acc,
Decimal value) |
void |
accumulate(GenericRow acc,
Decimal value,
Long order) |
TypeInformation<Decimal> |
getResultType()
Returns the
TypeInformation of the UserDefinedAggregateFunction 's result. |
accumulate, accumulate, createAccumulator, getAccumulatorType, getValue, isDeterministic, resetAccumulator
getKind, getRequirements, requiresOver
close, functionIdentifier, open, toString
public DecimalFirstValueAggFunction(DecimalTypeInfo decimalTypeInfo)
public void accumulate(GenericRow acc, Decimal value)
public void accumulate(GenericRow acc, Decimal value, Long order)
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.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.