I think that you can do what you want with overriding run() method of Mapper.
Even setup(), map(), cleanup() are protected, you can do whatever you want in run() method. Is there something I missed? 2010/3/23 Thomas Thevis <[email protected]>: > Hi all, > > I want to implement a CompositeMapper which delegates its map() calls to > a collection of registered mappers (similar to the DelegatingMapper, but > with more than one registered Mapper). However, since setup(), map() and > cleanup() are protected, there seems to be no way to let more than one > mapper produce output for the same key, value-pair. > My only idea is to try to clone the Context instance provided by run() > and delegate the run requests. However, this seems also not to be quite > simple, since Context is not Clonable or provides a copy constructor. > > I'd be grateful for all insights and ideas. > > Regards, > Thomas > > >
