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

Method testUDFReturnMap_LocalMode

test/org/apache/pig/test/TestUDF.java:77–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75 }
76
77 @Test
78 public void testUDFReturnMap_LocalMode() throws Exception {
79 PigServer pig = new PigServer(Util.getLocalTestMode());
80 pig.registerScript(TempScriptFile.getAbsolutePath());
81
82 Iterator<Tuple> iterator = pig.openIterator("B");
83 while (iterator.hasNext()) {
84 Tuple tuple = iterator.next();
85 @SuppressWarnings("unchecked")
86 Map<Object, Object> result = (Map<Object, Object>) tuple.get(0);
87 assertEquals(result, MyUDFReturnMap.map);
88 }
89 }
90
91 @Test
92 public void testUDFReturnMap_MapReduceMode() throws Exception {

Callers

nothing calls this directly

Calls 8

getLocalTestModeMethod · 0.95
registerScriptMethod · 0.95
openIteratorMethod · 0.95
getMethod · 0.95
getAbsolutePathMethod · 0.80
hasNextMethod · 0.45
nextMethod · 0.45
assertEqualsMethod · 0.45

Tested by

no test coverage detected