Skip to content

Commit

Permalink
Fix typo in FindAll javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
wtanaka committed Mar 26, 2017
1 parent fe33b3b commit 9eb8f55
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,8 @@ public void processElement(ProcessContext c) throws Exception {

/**
* {@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
Expand All @@ -721,8 +722,8 @@ public void processElement(ProcessContext c) throws Exception {
*
* <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>>> {
Expand Down

0 comments on commit 9eb8f55

Please sign in to comment.