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

Method runScript

test/org/apache/pig/test/TestScriptLanguage.java:71–78  ·  view source on GitHub ↗
(String name, String[] script)

Source from the content-addressed store, hash-verified

69 }
70
71 private Map<String, List<PigStats>> runScript(String name, String[] script) throws Exception {
72 String scriptName = name + "_testScript.py";
73 Util.createLocalInputFile(scriptName, script);
74 ScriptEngine scriptEngine = ScriptEngine.getInstance("jython");
75 PigServer pigServer = new PigServer(cluster.getExecType(), cluster.getProperties());
76 Map<String, List<PigStats>> statsMap = scriptEngine.run(pigServer.getPigContext(), scriptName);
77 return statsMap;
78 }
79
80 private PigStats runSimpleScript(String name, String[] script) throws Exception {
81 Map<String, List<PigStats>> statsMap = runScript(name, script);

Callers 5

runSimpleScriptMethod · 0.95
firstParallelTestMethod · 0.95
testStoreMethod · 0.45
testMacroMethod · 0.45

Calls 6

createLocalInputFileMethod · 0.95
getInstanceMethod · 0.95
runMethod · 0.95
getPigContextMethod · 0.95
getExecTypeMethod · 0.45
getPropertiesMethod · 0.45

Tested by

no test coverage detected