Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. final TupleTag<FileRecord> fileTag = new TupleTag<>();
  2. final TupleTag<MysqlRecord> mysqlTag = new TupleTag<>();
  3. PCollection<KV<Integer, CoGbkResult>> joinedRawCollection =
  4. KeyedPCollectionTuple.of(fileTag, fileRecords)
  5. .and(mysqlTag, mysqlRecords)
  6. .apply(CoGroupByKey.create());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement