com.basho.riak.client.query
Interface MapReduceResult

All Known Implementing Classes:
PBMapReduceResult

public interface MapReduceResult

Defines a way to access the results of a Map/reduce query.

Author:
russell
See Also:
MapReduce.execute()

Method Summary
<T> Collection<T>
getResult(Class<T> resultType)
          Mapped results to a simple java type, can be a Collection type (Map, List etc) or a Java Bean style class.
 String getResultRaw()
          The raw JSON string of the result
 

Method Detail

getResult

<T> Collection<T> getResult(Class<T> resultType)
                        throws ConversionException
Mapped results to a simple java type, can be a Collection type (Map, List etc) or a Java Bean style class. NOTE: You can annotate a class with Jackson annotations, too, but that is an implementation detail that may change. Expect a set of annotations that are API specific soon.

Type Parameters:
T -
Parameters:
resultType - A Java type to map the result too.
Returns:
a Collection of T.
Throws:
ConversionException

getResultRaw

String getResultRaw()
The raw JSON string of the result

Returns:
a String of JSON, useful if you need to do your own de-serialization.


Copyright © 2012. All Rights Reserved.