Spring Data Key-Value

org.springframework.data.keyvalue.riak.mapreduce
Interface MapReduceOperations

All Known Implementing Classes:
RiakKeyValueTemplate, RiakTemplate

public interface MapReduceOperations

Generic interface to Map/Reduce in data stores that support it.

Author:
J. Brisbin

Method Summary
 Object execute(MapReduceJob job)
          Execute a MapReduceJob synchronously.
<T> T
execute(MapReduceJob job, Class<T> targetType)
          Execute a MapReduceJob synchronously, converting the result into the given type.
<T> Future<List<T>>
submit(MapReduceJob job)
          Submit the job to run asynchronously.
 

Method Detail

execute

Object execute(MapReduceJob job)
Execute a MapReduceJob synchronously.

Parameters:
job -
Returns:

execute

<T> T execute(MapReduceJob job,
              Class<T> targetType)
Execute a MapReduceJob synchronously, converting the result into the given type.

Parameters:
job -
targetType -
Returns:
The converted value.

submit

<T> Future<List<T>> submit(MapReduceJob job)
Submit the job to run asynchronously.

Parameters:
job -
Returns:
The Future representing the submitted job.

Spring Data Key-Value

Copyright © 2010-2011 SpringSource. All Rights Reserved.