git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Passing parameter to DoFn in Python


Hi all,

Is it possible to pass a string parameter with DoFn function and what would be the syntax?

The call should look something like that:
beam.ParDo(SampleFn(samplePath))

how would the class definition be updated?
class SampleFn(beam.DoFn):
  def process(self,element):


Thanks,

--


( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-beam-users/msg02128.html on line 70
Call Stack
#TimeMemoryFunctionLocation
10.0009363544{main}( ).../msg02128.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-beam-users/msg02128.html on line 70
Call Stack
#TimeMemoryFunctionLocation
10.0009363544{main}( ).../msg02128.html:0