You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by ie...@apache.org on 2017/03/27 03:22:21 UTC

[2/3] beam git commit: Fix Regex#FindAll javadoc

Fix Regex#FindAll javadoc


Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/b92b9664
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/b92b9664
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/b92b9664

Branch: refs/heads/master
Commit: b92b96643732b05326150decace502194656662c
Parents: b49bae3
Author: wtanaka.com <wt...@yahoo.com>
Authored: Sun Mar 26 01:11:26 2017 -1000
Committer: Isma�l Mej�a <ie...@apache.org>
Committed: Mon Mar 27 05:19:56 2017 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/beam/sdk/transforms/Regex.java   | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam/blob/b92b9664/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/Regex.java
----------------------------------------------------------------------
diff --git a/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/Regex.java b/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/Regex.java
index a494fc9..690d321 100644
--- a/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/Regex.java
+++ b/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/Regex.java
@@ -710,7 +710,8 @@ public class Regex {
 
   /**
    * {@code Regex.Find<String>} takes a {@code PCollection<String>} and returns a {@code
-   * PCollection<String>} representing the value extracted from the Regex groups of the input {@code
+   * PCollection<List<String>>} representing the value extracted from the
+   * Regex groups of the input {@code
    * PCollection} to the number of times that element occurs in the input.
    *
    * <p>This transform runs a Regex on the entire input line. If a portion of the line does not
@@ -721,8 +722,8 @@ public class Regex {
    *
    * <pre>{@code
    * PCollection<String> words = ...;
-   * PCollection<String> values =
-   *     words.apply(Regex.find("myregex (mygroup)"));
+   * PCollection<List<String>> values =
+   *     words.apply(Regex.findAll("myregex (mygroup)"));
    * }</pre>
    */
   public static class FindAll extends PTransform<PCollection<String>, PCollection<List<String>>> {