()
| 60 | |
| 61 | |
| 62 | private void init() throws IOException { |
| 63 | |
| 64 | lookupTable = new HashMap<String, Boolean>(); |
| 65 | |
| 66 | Properties props = ConfigurationUtil.toProperties(PigMapReduce.sJobConfInternal.get()); |
| 67 | InputStream is = FileLocalizer.openDFSFile(FilterFileName, props); |
| 68 | |
| 69 | BufferedReader reader = new BufferedReader(new InputStreamReader(is)); |
| 70 | |
| 71 | while (true){ |
| 72 | String line = reader.readLine(); |
| 73 | |
| 74 | if (line == null) |
| 75 | break; |
| 76 | |
| 77 | String FilterField = line.split("\t")[0]; |
| 78 | |
| 79 | lookupTable.put(FilterField, Boolean.TRUE); |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | @Override |
| 84 | public Boolean exec(Tuple input) throws IOException { |
no test coverage detected