We have a requirement to create separate threads for reading multiple files.
- Thread 1 can read file 1 and create
PCollection<String>. Can I execute aPardo Operationin a multithreaded environment. and create aPCollection < String,String >fromPCollection< String >? - Thread 2 and complete the same operation from Thread 1 but on a different file File 2.
- Join output of File1 and File 2 in the main thread after Thread 1 and Thread 2 operation is completed.
Could you please tell whether this is possible and it is a recommended approach?