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

Method jsNewArray

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

creates a new javascript array @param size the size of the array @return an empty array of the given size

(long size)

Source from the content-addressed store, hash-verified

189 * @return an empty array of the given size
190 */
191 public Scriptable jsNewArray(long size) {
192 return getContext().newArray(scope, (int)size);
193 }
194
195 public JsScriptEngine() {
196 Context context = getContext();

Callers 1

pigBagToJSMethod · 0.80

Calls 2

getContextMethod · 0.95
newArrayMethod · 0.80

Tested by

no test coverage detected