public static class FirstValueWithRetractAggFunction.StringFirstValueWithRetractAggFunction extends FirstValueWithRetractAggFunction<StringData>
FirstValueWithRetractAggFunction.BooleanFirstValueWithRetractAggFunction, FirstValueWithRetractAggFunction.ByteFirstValueWithRetractAggFunction, FirstValueWithRetractAggFunction.DecimalFirstValueWithRetractAggFunction, FirstValueWithRetractAggFunction.DoubleFirstValueWithRetractAggFunction, FirstValueWithRetractAggFunction.FloatFirstValueWithRetractAggFunction, FirstValueWithRetractAggFunction.IntFirstValueWithRetractAggFunction, FirstValueWithRetractAggFunction.LongFirstValueWithRetractAggFunction, FirstValueWithRetractAggFunction.ShortFirstValueWithRetractAggFunction, FirstValueWithRetractAggFunction.StringFirstValueWithRetractAggFunction
Constructor and Description |
---|
StringFirstValueWithRetractAggFunction() |
Modifier and Type | Method and Description |
---|---|
void |
accumulate(GenericRowData acc,
StringData value) |
void |
accumulate(GenericRowData acc,
StringData value,
Long order) |
protected TypeSerializer<StringData> |
createValueSerializer() |
TypeInformation<StringData> |
getResultType()
Returns the
TypeInformation of the UserDefinedAggregateFunction 's result. |
accumulate, accumulate, createAccumulator, getAccumulatorType, getValue, resetAccumulator, retract, retract
getKind, getRequirements, getTypeInference, requiresOver
close, functionIdentifier, open, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isDeterministic
public StringFirstValueWithRetractAggFunction()
public TypeInformation<StringData> getResultType()
UserDefinedAggregateFunction
TypeInformation
of the UserDefinedAggregateFunction
's result.getResultType
in class UserDefinedAggregateFunction<StringData,GenericRowData>
TypeInformation
of the UserDefinedAggregateFunction
's result or
null
if the result type should be automatically inferred.public void accumulate(GenericRowData acc, StringData value) throws Exception
Exception
public void accumulate(GenericRowData acc, StringData value, Long order) throws Exception
Exception
protected TypeSerializer<StringData> createValueSerializer()
createValueSerializer
in class FirstValueWithRetractAggFunction<StringData>
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.