If you want to reuse MongoDbIO, there's no easy way. However, I can introduce the same change we did in Jdbc or Elasticsearch IOs.
Agree ? Regards JB On 15/10/2018 13:46, Chaim Turkel wrote: > Thanks, > I need to wrap MongoDbIO.read, and don't see an easy way to do it > chaim > On Mon, Oct 15, 2018 at 2:30 PM Jean-Baptiste Onofré <j...@nanthrax.net> > wrote: >> >> Hi Chaim, >> >> you can take a look on JdbcIO. >> >> You can create any "startup" PCollection on the PBegin, and then you can >> can the DoFn based on that. >> >> Regards >> JB >> >> On 15/10/2018 13:00, Chaim Turkel wrote: >>> Hi, >>> I there a way to write code before the PBegin. >>> I am writeing a pipeline to connect to mongo with self signed ssl. I >>> need to init the ssl connection of the java before the mongo code. So >>> i need to write code before the PBegin but for it to run on each node? >>> >>> >>> Chaim >>> >> >> -- >> Jean-Baptiste Onofré >> jbono...@apache.org >> http://blog.nanthrax.net >> Talend - http://www.talend.com > -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com