0
我有以下PTables,遍歷PTABLE在緊縮
PTable<String, String> somePTable1 = somePCollection1.parallelDo(new SomeClass(),
Writables.tableOf(Writables.strings(), Writables.strings()));
PTable<String, Collection<String>> somePTable2 = somePTable1.collectValues();
對於somePTable2如上所述,我想創建一個新的文件在somePTable2每個記錄,有沒有什麼辦法來遍歷somePTable2讓我能訪問記錄。我知道我可以將doFn應用於somePTable2,但是可以在DoFn中應用pipeline.write()操作嗎?