0

There is pyflink.datastream.MapFunction in Flink Python API Docs. Meanwhile there is no RichMapFunction. Could somebody tell me why?

Shayxu
  • 5
  • 2

2 Answers2

0

I'm not sure why it's missing from PyFlink, but RichMapFunction is completely unnecessary. Anything you could do with a RichMapFunction can be done with a ProcessFunction or KeyedProcessFunction instead.

David Anderson
  • 39,434
  • 4
  • 33
  • 60
0

All the functions in PyFlink are rich. You can see that, pyflink.datastream.MapFunction extends pyflink.datastream.Function which has a open method.

Dian Fu
  • 211
  • 1
  • 2