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

    https://github.com/apache/flink/pull/1585#discussion_r52282275
  
    --- Diff: 
flink-scala/src/main/scala/org/apache/flink/api/scala/DataSet.scala ---
    @@ -1508,6 +1508,31 @@ class DataSet[T: ClassTag](set: JavaDataSet[T]) {
           new SortPartitionOperator[T](javaSet, field, order, 
getCallLocationName()))
       }
     
    +  /**
    +    * Locally sorts the partitions of the DataSet on the specified field 
in the specified order.
    +    * The DataSet can be sorted on multiple fields by chaining 
sortPartition() calls.
    +    *
    +    * Note that any key extraction methods cannot be chained with the 
KeySelector. To sort the
    +    * partition by multiple values using KeySelector, the KeySelector must 
return a tuple
    +    * consisting of the values.
    +    */
    +  def sortPartition[K: TypeInformation](fun: T => K, order: Order): 
DataSet[T] ={
    --- End diff --
    
    Copy the method docs from the `DataSet.java`. 


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