asfgit closed pull request #7282: [hotfix][docs] imporve docs of batch overview
URL: https://github.com/apache/flink/pull/7282
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/docs/dev/batch/index.md b/docs/dev/batch/index.md
index d0043647227..b4dd1671d85 100644
--- a/docs/dev/batch/index.md
+++ b/docs/dev/batch/index.md
@@ -406,7 +406,8 @@ DataSet<Integer> result = in.partitionByRange(0)
<i>Note</i>: This method works only on single field keys.</p>
{% highlight java %}
DataSet<Tuple2<String,Integer>> in = // [...]
-DataSet<Integer> result = in.partitionCustom(Partitioner<K> partitioner, key)
+DataSet<Integer> result = in.partitionCustom(partitioner, key)
+ .mapPartition(new PartitionMapper());
{% endhighlight %}
</td>
</tr>
@@ -709,7 +710,7 @@ val result = in.partitionByRange(0).mapPartition { ... }
{% highlight scala %}
val in: DataSet[(Int, String)] = // [...]
val result = in
- .partitionCustom(partitioner: Partitioner[K], key)
+ .partitionCustom(partitioner, key).mapPartition { ... }
{% endhighlight %}
</td>
</tr>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services