Class PythonFunctionFactoryImpl

java.lang.Object
org.apache.flink.client.python.PythonFunctionFactoryImpl
All Implemented Interfaces:
Closeable, AutoCloseable, PythonFunctionFactory

public class PythonFunctionFactoryImpl extends Object implements PythonFunctionFactory, Closeable
Default implementation of PythonFunctionFactory.
  • Constructor Details

    • PythonFunctionFactoryImpl

      public PythonFunctionFactoryImpl(PythonFunctionFactory realPythonFunctionFactory, org.apache.flink.client.python.PythonEnvUtils.PythonProcessShutdownHook shutdownHook)
  • Method Details

    • getPythonFunction

      public org.apache.flink.table.functions.python.PythonFunction getPythonFunction(String moduleName, String objectName)
      Description copied from interface: PythonFunctionFactory
      Returns PythonFunction according to moduleName and objectName.
      Specified by:
      getPythonFunction in interface PythonFunctionFactory
      Parameters:
      moduleName - The module name of the Python UDF.
      objectName - The function name / class name of the Python UDF.
      Returns:
      The PythonFunction object which represents the Python UDF.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable