Is there anyway to use a python user defined function within a Java Flink Job or anyway to communicate for example the result of a transformation done by flink with java with a python user defined function to apply some machine learning things:
I know that from pyFlink you can do something like this:
table_env.register_java_function("hash_code", "my.java.function.HashCode")
But I need to do something like that but add the python function from java, or how can I pass the result of a java transformation to a Python UDF Flink job directly?
I hope these questions are not to crazy, but I need to know if exist somehow to communicate Flink DataStream API with Python Table API having Java as main language? this means that from Java I need to do: Source -> Transformations -> Sink, but some of these transformations can trigger a Python function or a Python function will be waiting for some Java transformation to finish to do something with the Stream result.
I hope someone understand what I'm trying to do here.
Kind regards!