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

    https://github.com/apache/flink/pull/1517#discussion_r64667048
  
    --- Diff: 
flink-java/src/main/java/org/apache/flink/api/java/operators/UnsortedGrouping.java
 ---
    @@ -135,10 +136,37 @@ public UnsortedGrouping(DataSet<T> set, Keys<T> keys) 
{
         * @see DataSet
         */
        public ReduceOperator<T> reduce(ReduceFunction<T> reducer) {
    +           return reduce(Utils.getCallLocationName(), reducer, 
CombineHint.OPTIMIZER_CHOOSES);
    +   }
    +
    +   /**
    +    * Applies a Reduce transformation on a grouped {@link DataSet}.<br>
    +    * For each group, the transformation consecutively calls a {@link 
org.apache.flink.api.common.functions.RichReduceFunction}
    +    *   until only a single element for each group remains.
    +    * A ReduceFunction combines two elements into one new element of the 
same type.
    +    *
    +    * @param reducer The ReduceFunction that is applied on each group of 
the DataSet.
    +    * @param strategy The strategy that should be used to execute the 
combine phase of the reduce.
    +    *                 If {@code null} is given, then the optimizer will 
pick the strategy.
    +    * @return A ReduceOperator that represents the reduced DataSet.
    +    *
    +    * @see org.apache.flink.api.common.functions.RichReduceFunction
    +    * @see ReduceOperator
    +    * @see DataSet
    +    */
    +   public ReduceOperator<T> reduce(ReduceFunction<T> reducer, CombineHint 
strategy) {
    --- End diff --
    
    The `ReduceOperator.setCombineHint(CombineHint)` method should be annotated 
with `@PublicEvolving`.


---
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