/** * @param configuration The configuration object that will given to the mapper * associated with the driver * @return this object for fluent coding */ public MapDriver<K1, V1, K2, V2> withConfiguration(Configuration configuration) { setConfiguration(configuration); return this; } }
MapDriver mapDriver = MapDriver.newMapDriver(mapper); mapDriver.setCounters(counters); mapDriver.setConfiguration(getConfiguration()); mapDriver.addAll(inputs.get(mapper)); mapDriver.withMapInputPath(getMapInputPath(mapper));