public class JythonUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.python.util.PythonInterpreter |
getInterpreter()
Get Jython interpreter
|
static void |
init(org.apache.hadoop.conf.Configuration conf,
String klassName)
Sets up the Configuration for using Jython
|
static org.python.core.PyObject |
newInstance(String className)
Instantiate new instance of the Jython class
|
static <T> T |
newInstance(String className,
Class<? extends T> klass)
Instantiate new instance of the Jython class
|
public static org.python.util.PythonInterpreter getInterpreter()
public static void init(org.apache.hadoop.conf.Configuration conf,
String klassName)
conf - Configuration to seklassName - Class name of Jython Computationpublic static org.python.core.PyObject newInstance(String className)
className - Jython class nameCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.