@Test public void createsCorrectJobConfiguration() throws IOException, IllegalAccessException, ClassNotFoundException { Job job=inBloomFilterTool.createJob(new String[] { "-input", "/basekb-sandbox/someLocation", "-k", "7", "-output", "/basekb-sandbox/anotherLocation", "-bloomFilter", "/camels/" }); assertEquals(job.getMapperClass(),InBloomFilterMapper.class); assertEquals(job.getConfiguration().get(InBloomFilterMapper.FILTER_PATH),"/camels/"); assertEquals(job.getConfiguration().get(InBloomFilterMapper.NB_HASH),"7"); }
@Override protected Class<? extends Mapper> getMapperClass() { return InBloomFilterMapper.class; }
InBloomFilterTool extends SingleJobTool<InBloomFilterOptions> { @Override protected Class<? extends Mapper> getMapperClass() { return InBloomFilterMapper.class; } }
InBloomFilterTool extends SingleJobTool<InBloomFilterOptions> { @Override protected Class<? extends Mapper> getMapperClass() { return InBloomFilterMapper.class; }  }
InBloomFilterTool extends SingleJobTool<InBloomFilterOptions> { @Override protected Class<? extends Mapper> getMapperClass() { return InBloomFilterMapper.class; }  @Override Class<? extends Writable> getOutputKeyClass(); @Override Class<? extends Writable> getOutputValueClass(); @Override Iterable<Path> getInputPaths(); @Override int getNumReduceTasks(); @Override Class getOptionsClass(); }
InBloomFilterTool extends SingleJobTool<InBloomFilterOptions> { @Override protected Class<? extends Mapper> getMapperClass() { return InBloomFilterMapper.class; }  @Override Class<? extends Writable> getOutputKeyClass(); @Override Class<? extends Writable> getOutputValueClass(); @Override Iterable<Path> getInputPaths(); @Override int getNumReduceTasks(); @Override Class getOptionsClass();  }