I have a PCollection of BigQuery TableRow elements that are tagged depending on whether one column of the TableRow was successfully parsed or not.
final TupleTag<TableRow> OK = new TupleTag<TableRow>(){};
final TupleTag<TableRow> NOTOK = new TupleTag<TableRow>(){};
My ParDo function tags these TableRow based on the column parsing, and returns a PCollectionTuple called myPCollection.
I would like to do the following:
- Get all the elements in the PCollection (tagged both as OK and NOTOK), and output them to BigQuery.
- Get only the elements tagged as NOTOK and send them to Pub/Sub
I know I can do #2 by calling
myPCollection.get(NOTOK)
I cannot find a way to do #1. I saw there is a method called myPCollection.getAll() but instead of a PCollection it returns a Map, PCollection>
Any ideas on how to get the entire set of elements regardless of how they are tagged?