com.basho.riak.client.raw.query
Class MapReduceSpec
java.lang.Object
com.basho.riak.client.raw.query.MapReduceSpec
public class MapReduceSpec
- extends Object
An immutable representation of a Map Reduce Query, run it via
IRiakClient#mapReduce(MapReduceSpec)
, used internally.
This is a just a tag class wrapped around a string. Use a MapReduce
operation to generate and execute a Map/Reduce job. Obtain a
MapReduce
from either IRiakClient.mapReduce()
or
IRiakClient.mapReduce(String)
.
- Author:
- russell
- See Also:
RawClient.mapReduce(MapReduceSpec)
,
MapReduce
,
IRiakClient.mapReduce()
,
IRiakClient.mapReduce(String)
Constructor Summary |
MapReduceSpec(String mapReduceSpecJSON)
Create a MapReduceSpec by providing a map reduce job JSON string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapReduceSpec
public MapReduceSpec(String mapReduceSpecJSON)
- Create a MapReduceSpec by providing a map reduce job JSON string.
- Parameters:
mapReduceSpecJSON
- a String of JSON describing the m/r job.
getJSON
public String getJSON()
- Get the JSON of the m/r job spec
- Returns:
- a JSON String of m/r job spec.
Copyright © 2012. All Rights Reserved.