public class PythonFunctionFactoryImpl extends Object implements PythonFunctionFactory, Closeable
PythonFunctionFactory.CacheKey
CACHE_CLEANUP_EXECUTOR_SERVICE, CACHE_CLEANUP_EXECUTOR_SERVICE_STARTED, PYTHON_FUNCTION_FACTORY_CACHE
Constructor and Description |
---|
PythonFunctionFactoryImpl(PythonFunctionFactory realPythonFunctionFactory,
PythonEnvUtils.PythonProcessShutdownHook shutdownHook) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
PythonFunction |
getPythonFunction(String moduleName,
String objectName)
Returns PythonFunction according to moduleName and objectName.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createPythonFunctionFactory, ensureCacheCleanupExecutorServiceStarted, getPythonFunction
public PythonFunctionFactoryImpl(PythonFunctionFactory realPythonFunctionFactory, PythonEnvUtils.PythonProcessShutdownHook shutdownHook)
public PythonFunction getPythonFunction(String moduleName, String objectName)
PythonFunctionFactory
getPythonFunction
in interface PythonFunctionFactory
moduleName
- The module name of the Python UDF.objectName
- The function name / class name of the Python UDF.public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.