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

Method testFinishInMapLoc

test/org/apache/pig/test/TestFinish.java:172–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170 }
171
172 @Test
173 public void testFinishInMapLoc() throws Exception {
174 String inputFileName = setUp(ExecType.LOCAL);
175 // this file will be created on the cluster if finish() is called
176 String expectedFileName = "testFinishInMapLoc-finish.txt";
177 pigServer.registerQuery("define MYUDF " + MyEvalFunction.class.getName() + "('LOCAL','"
178 + expectedFileName + "');");
179 pigServer.registerQuery("a = load '" + Util.encodeEscape(inputFileName) + "' using "
180 + PigStorage.class.getName() + "(':');");
181 pigServer.registerQuery("b = foreach a generate MYUDF" + "(*);");
182 pigServer.openIterator("b");
183 checkAndCleanup(ExecType.LOCAL, expectedFileName, inputFileName);
184 }
185
186 @Test
187 public void testFinishInReduceLoc() throws Exception {

Callers

nothing calls this directly

Calls 6

setUpMethod · 0.95
encodeEscapeMethod · 0.95
checkAndCleanupMethod · 0.95
openIteratorMethod · 0.80
registerQueryMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected