Github user fhueske commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3762#discussion_r113067259
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/functions/AggregateFunction.scala
 ---
    @@ -17,36 +17,93 @@
      */
     package org.apache.flink.table.functions
     
    -import java.util.{List => JList}
    -
    -import org.apache.flink.api.common.typeinfo.TypeInformation
    -import org.apache.flink.table.api.TableException
    -
     /**
       * Base class for User-Defined Aggregates.
       *
    -  * @tparam T the type of the aggregation result
    +  * The behavior of an [[AggregateFunction]] can be defined by 
implementing a series of custom
    +  * methods. An [[AggregateFunction]] needs at least three methods: 
createAccumulator, getValue,
    +  * and accumulate. There are a few other methods that can be optional to 
have: retract, merge,
    +  * resetAccumulator, and getAccumulatorType.
    +  *
    +  * All these methods muse be declared publicly, not static and named 
exactly as the names
    +  * mentioned above. The methods createAccumulator and getValue are 
defined in the
    +  * [[AggregateFunction]] functions, while other methods are explained 
below.
    +  *
    +  *
    +  * {{{
    +  * Processes the input values and update the provided accumulator 
instance. The method
    +  * accumulate can be overloaded with different custom types and 
arguments. This function is
    --- End diff --
    
    "This function is always a MUST to have." -> "An AggregateFunction requires 
at least one accumulate method"?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to