org.apache.pig.scripting.streaming.python
Class PythonScriptEngine
java.lang.Object
org.apache.pig.scripting.ScriptEngine
org.apache.pig.scripting.streaming.python.PythonScriptEngine
public class PythonScriptEngine
- extends ScriptEngine
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PythonScriptEngine
public PythonScriptEngine()
registerFunctions
public void registerFunctions(String path,
String namespace,
PigContext pigContext)
throws IOException
- Description copied from class:
ScriptEngine
- Registers scripting language 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
main
protected Map<String,List<PigStats>> main(PigContext context,
String scriptFile)
throws IOException
- Description copied from class:
ScriptEngine
- Actually runs the script file. This method will be implemented by
individual script engines.
- Specified by:
main
in class ScriptEngine
- Parameters:
context
- ScriptPigContext
to run the script filescriptFile
- the file
- Throws:
IOException
getScriptingLang
protected String getScriptingLang()
- Description copied from class:
ScriptEngine
- Gets ScriptEngine classname or keyword for the scripting language
- Specified by:
getScriptingLang
in class ScriptEngine
getParamsFromVariables
protected Map<String,Object> getParamsFromVariables()
throws IOException
- Description copied from class:
ScriptEngine
- Returns a map from local variable names to their values
- Specified by:
getParamsFromVariables
in class ScriptEngine
- Throws:
IOException
Copyright © 2007-2012 The Apache Software Foundation