[infinispan-dev] MapReduceTask serialization

Vladimir Blagojevic vblagoje at redhat.com
Wed Mar 9 11:01:19 EST 2011


Hey,

I've sort of hit a snag with the current MapReduce design and 
serialization. Our MapReduceTask API allows users to specify Mapper, 
Reducer and Collator interfaces as anonymous classes [1]. However, we 
can not serialize instances of these classes as they are anonymous 
[2](see Note in section 1.10).

Of course, users can specify static implementations of these interfaces 
and we can put a big warning notice about anonymous class 
implementations of Mapper, Reducer and Collator but our MapReduceTask 
fluent API itself nudges users to use anonymous classes :-(

Not sure what to do! Ideas?


[1]http://community.jboss.org/wiki/InfinispanDistributedExecutionFramework#Examples 

[2]http://download.oracle.com/javase/6/docs/platform/serialization/spec/serial-arch.html


More information about the infinispan-dev mailing list