(Tuple input)
| 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() + "()")); |
nothing calls this directly
no test coverage detected