Created
June 5, 2018 22:02
-
-
Save davideanastasia/ac67a66b0d74757c70c9a7063a8352f7 to your computer and use it in GitHub Desktop.
Apache Beam Getting Started - #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Indexer { | |
| public static void main(String[] args) throws Exception { | |
| // ... | |
| p.apply(FileIO.match().filepattern(options.getInputFile())) | |
| .apply(FileIO.readMatches()) | |
| .apply("ReadFile", ParDo.of(new ReadFileFn())) | |
| // .. | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment