Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final TupleTag<FileRecord> fileTag = new TupleTag<>();
- final TupleTag<MysqlRecord> mysqlTag = new TupleTag<>();
- PCollection<KV<Integer, CoGbkResult>> joinedRawCollection =
- KeyedPCollectionTuple.of(fileTag, fileRecords)
- .and(mysqlTag, mysqlRecords)
- .apply(CoGroupByKey.create());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement