Last active
June 9, 2017 20:10
-
-
Save alexvanboxel/0f38ceb5ccebbccebcd759576be428c2 to your computer and use it in GitHub Desktop.
This file contains 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
pubsub.apply(Flatten.<TableRow>pCollections()) | |
.apply("Fixed Windows", | |
Window.<TableRow>into(FixedWindows.of(Duration.standardMinutes(1)))) | |
.apply("BQWrite", BigQueryIO.writeTableRows() | |
.to(TableRefPartition.perDay( | |
"my-project", | |
"my-dataset", | |
"my-tables")) | |
.withSchema(SchemaFor.backupEvent()) | |
.withWriteDisposition(BigQueryIO.Write.WriteDisposition.WRITE_APPEND) | |
.withCreateDisposition(BigQueryIO.Write.CreateDisposition.CREATE_NEVER) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment