Guest User

Untitled

a guest
May 20th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. // read the BigQuery data
  2. PCollection<TableRow> bigQuerySource = p
  3. .apply(BigQueryIO.readTableRows().fromQuery(bigQueryQuery).usingStandardSql().withTemplateCompatibility());
  4.  
  5. ..
  6. public void processElement(ProcessContext c) {
  7. Set<Map.Entry<String, Object>> entries = c.element().entrySet();
  8. for (Map.Entry<String, Object> entry : entries) {
  9. Object value = entry.getValue();
  10. String x = value.getClass().getName();
  11. }
  12. ..
Add Comment
Please, Sign In to add comment