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

Method exec

test/org/apache/pig/test/TestFRJoin.java:105–115  ·  view source on GitHub ↗
(Tuple input)

Source from the content-addressed store, hash-verified

103 }
104
105 @Override
106 public DataBag exec(Tuple input) throws IOException {
107 if (!isTblSetUp) {
108 setUpHashTable();
109 isTblSetUp = true;
110 }
111 String key = (String)input.get(keyField);
112 if (!replTbl.containsKey(key))
113 return BagFactory.getInstance().newDefaultBag();
114 return replTbl.get(key);
115 }
116
117 private void setUpHashTable() throws IOException {
118 FileSpec replFile = new FileSpec(repl, new FuncSpec(PigStorage.class.getName() + "()"));

Callers

nothing calls this directly

Calls 5

setUpHashTableMethod · 0.95
getInstanceMethod · 0.95
getMethod · 0.65
containsKeyMethod · 0.45
newDefaultBagMethod · 0.45

Tested by

no test coverage detected