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

Method getContext

src/org/apache/pig/scripting/js/JsScriptEngine.java:116–123  ·  view source on GitHub ↗

@return the javascript context for the current thread

()

Source from the content-addressed store, hash-verified

114 * @return the javascript context for the current thread
115 */
116 private Context getContext() {
117 Context context = cx.get();
118 if (context == null) {
119 context = Context.enter();
120 cx.set(context);
121 }
122 return context;
123 }
124
125 /**
126 * evaluate a javascript String

Callers 15

jsEvalMethod · 0.95
jsCallMethod · 0.95
jsNewObjectMethod · 0.95
jsNewArrayMethod · 0.95
JsScriptEngineMethod · 0.95
initializeMethod · 0.80
onVertexStateUpdatedMethod · 0.80
configureMethod · 0.80
trySchedulingTasksMethod · 0.80
onVertexStartedMethod · 0.80
initializeMethod · 0.80

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected