org.apache.pig.scripting.jython
Class JythonScriptEngine
java.lang.Object
org.apache.pig.scripting.ScriptEngine
org.apache.pig.scripting.jython.JythonScriptEngine
public class JythonScriptEngine
- extends ScriptEngine
Implementation of the script engine for Jython
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JythonScriptEngine
public JythonScriptEngine()
registerFunctions
public void registerFunctions(String path,
String namespace,
PigContext pigContext)
throws IOException
- Description copied from class:
ScriptEngine
- registers the Jython functions as Pig functions with given namespace
- Specified by:
registerFunctions
in class ScriptEngine
- Parameters:
path
- path of the scriptnamespace
- namespace for the functionspigContext
- pigcontext to register functions to pig in the given namespace
- Throws:
IOException
getFunction
public static org.python.core.PyFunction getFunction(String path,
String functionName)
throws IOException
- Throws:
IOException
Copyright © ${year} The Apache Software Foundation