public interface PythonFunctionFactory
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
PythonFunctionFactory.PythonProcessShutdownHook
The shutdown hook used to destroy the Python process.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static long |
CHECK_INTERVAL |
static AtomicReference<PythonFunctionFactory> |
PYTHON_FUNCTION_FACTORY_REF |
static long |
TIMEOUT_MILLIS |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.apache.flink.table.functions.python.PythonFunction |
getPythonFunction(String fullyQualifiedName,
org.apache.flink.configuration.ReadableConfig config)
Returns PythonFunction according to the fully qualified name of the Python UDF i.e
${moduleName}.
|
org.apache.flink.table.functions.python.PythonFunction |
getPythonFunction(String moduleName,
String objectName)
Returns PythonFunction according to moduleName and objectName.
|
static PythonFunctionFactory |
getPythonFunctionFactory(org.apache.flink.configuration.ReadableConfig config) |
static void |
shutdownPythonProcess(Process pythonProcess,
long timeoutMillis) |
static final long CHECK_INTERVAL
static final long TIMEOUT_MILLIS
static final AtomicReference<PythonFunctionFactory> PYTHON_FUNCTION_FACTORY_REF
org.apache.flink.table.functions.python.PythonFunction getPythonFunction(String moduleName, String objectName)
moduleName - The module name of the Python UDF.objectName - The function name / class name of the Python UDF.static org.apache.flink.table.functions.python.PythonFunction getPythonFunction(String fullyQualifiedName, org.apache.flink.configuration.ReadableConfig config) throws IOException, ExecutionException, InterruptedException
fullyQualifiedName - The fully qualified name of the Python UDF.config - The configuration of python dependencies.IOExceptionExecutionExceptionInterruptedExceptionstatic PythonFunctionFactory getPythonFunctionFactory(org.apache.flink.configuration.ReadableConfig config) throws ExecutionException, InterruptedException, IOException
static void shutdownPythonProcess(Process pythonProcess, long timeoutMillis)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.