Skip to content

Instantly share code, notes, and snippets.

@davideanastasia
Created June 5, 2018 22:02
Show Gist options
  • Save davideanastasia/ac67a66b0d74757c70c9a7063a8352f7 to your computer and use it in GitHub Desktop.
Save davideanastasia/ac67a66b0d74757c70c9a7063a8352f7 to your computer and use it in GitHub Desktop.
Apache Beam Getting Started - #2
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