MCPcopy Create free account
hub / github.com/apache/pig / getInstance

Method getInstance

src/org/apache/pig/scripting/js/JsScriptEngine.java:83–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81 }
82
83 public static JsScriptEngine getInstance() {
84 JsScriptEngine instance = Holder.instance;
85 /** add script path information in the UDFContext */
86 UDFContext.getUDFContext().getUDFProperties(JsFunction.class).put(JsScriptEngine.class.getName()+".scriptFile", instance.scriptPath);
87 return instance;
88 }
89
90 private ThreadLocal<Context> cx = new ThreadLocal<Context>();
91 private Scriptable scope;

Callers 2

JsFunctionMethod · 0.95
JythonUtilsClass · 0.45

Calls 4

getUDFContextMethod · 0.95
putMethod · 0.45
getUDFPropertiesMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected