protected void configureMapper(Job job) throws IOException {
final FijiMapper<?, ?, ?, ?> mapper = getMapper();
if (null == mapper) {
throw new JobConfigurationException("Must specify a mapper");
}
if (mapper instanceof Configurable) {
((Configurable) mapper).setConf(job.getConfiguration());
}
job.setMapperClass(((Mapper<?, ?, ?, ?>) mapper).getClass());
job.setMapOutputKeyClass(mapper.getOutputKeyClass());
job.setMapOutputValueClass(mapper.getOutputValueClass());
configureAvro(job, mapper);
configureHTableInput(job, mapper);
}