You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by ro...@apache.org on 2019/01/21 11:12:15 UTC
[beam] branch master updated: Correct trivial documentation bug
This is an automated email from the ASF dual-hosted git repository.
robertwb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new 28801d7 Correct trivial documentation bug
new b0cbd96 Merge pull request #7578 Documentation bug in View.java
28801d7 is described below
commit 28801d799a6ec5ef100e0666c1c9d0f7382d446a
Author: Niel Markwick <ni...@users.noreply.github.com>
AuthorDate: Sat Jan 19 23:21:05 2019 +0100
Correct trivial documentation bug
In the example code for View, asMap() is used for multimap creation and it should be asMultimap()
---
sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/View.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/View.java b/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/View.java
index 0e420b4..a113354 100644
--- a/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/View.java
+++ b/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/View.java
@@ -82,7 +82,7 @@ import org.apache.beam.sdk.values.PCollectionViews;
*
* <pre>{@code
* PCollectionView<Map<K, Iterable<V>> output =
- * somePCollection.apply(View.<K, Iterable<V>>asMap());
+ * somePCollection.apply(View.<K, Iterable<V>>asMultimap());
* }</pre>
*
* <p>To iterate over an entire window of a {@link PCollection} via side input, use {@link