Getting MapReduce results on RIAK (using the Java client)
===

I am storing Person POJOs (4 string fields - id, name, lastUpdate, Data) on RIAK, then trying to fetch these objects with MapReduce.

I am doing it very similar to Basho documentation:

		BucketMapReduce m = riakClient.mapReduce("person");
		m.addMapPhase(new NamedJSFunction("Riak.mapByFields"), true);
		MapReduceResult result = m.execute();
		Collection<Person> tmp = result.getResult(Person.class);
 
the Person's String constructor is invoked:

	public Person(String str){}

(I must have this constructor, otherwise I get an exception for it is missing)
In there I get the object as a String - the Object's fields in one string with a strange delimiter.

why am I not getting the object automatically converted to my POJO? do I really need to go over the string and deserialize it? am i doing something wrong?s
