|
Spring Data Document | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use MapReduceOptions | |
---|---|
org.springframework.data.mongodb.core | MongoDB core support. |
org.springframework.data.mongodb.core.mapreduce |
Uses of MapReduceOptions in org.springframework.data.mongodb.core |
---|
Methods in org.springframework.data.mongodb.core with parameters of type MapReduceOptions | ||
---|---|---|
|
MongoTemplate.mapReduce(Query query,
String inputCollectionName,
String mapFunction,
String reduceFunction,
MapReduceOptions mapReduceOptions,
Class<T> entityClass)
|
|
|
MongoOperations.mapReduce(Query query,
String inputCollectionName,
String mapFunction,
String reduceFunction,
MapReduceOptions mapReduceOptions,
Class<T> entityClass)
Execute a map-reduce operation that takes a query and additional map-reduce options |
|
|
MongoTemplate.mapReduce(String inputCollectionName,
String mapFunction,
String reduceFunction,
MapReduceOptions mapReduceOptions,
Class<T> entityClass)
|
|
|
MongoOperations.mapReduce(String inputCollectionName,
String mapFunction,
String reduceFunction,
MapReduceOptions mapReduceOptions,
Class<T> entityClass)
Execute a map-reduce operation that takes additional map-reduce options. |
Uses of MapReduceOptions in org.springframework.data.mongodb.core.mapreduce |
---|
Methods in org.springframework.data.mongodb.core.mapreduce that return MapReduceOptions | |
---|---|
MapReduceOptions |
MapReduceOptions.extraOption(String key,
Object value)
Add additional extra options that may not have a method on this class. |
MapReduceOptions |
MapReduceOptions.finalizeFunction(String finalizeFunction)
Sets the finalize function |
MapReduceOptions |
MapReduceOptions.javaScriptMode(boolean javaScriptMode)
Flag that toggles behavior in the map-reduce operation so as to avoid intermediate conversion to BSON between the map and reduce steps. |
MapReduceOptions |
MapReduceOptions.limit(int limit)
Limit the number of objects to return from the collection that is fed into the map reduce operation Often used in conjunction with a query and sort option so as to reduce the portion of the data that will be processed. |
static MapReduceOptions |
MapReduceOptions.options()
Static factory method to create a MapReduceOptions instance |
MapReduceOptions |
MapReduceOptions.outputCollection(String collectionName)
The collection where the results from the map-reduce operation will be stored. |
MapReduceOptions |
MapReduceOptions.outputDatabase(String outputDatabase)
The database where the results from the map-reduce operation will be stored. |
MapReduceOptions |
MapReduceOptions.outputSharded(boolean outputShared)
If true and combined with an output mode that writes to a collection, the output collection will be sharded using the _id field. |
MapReduceOptions |
MapReduceOptions.outputTypeInline()
With this option, no collection will be created, and the whole map-reduce operation will happen in RAM. |
MapReduceOptions |
MapReduceOptions.outputTypeMerge()
This option will merge new data into the old output collection. |
MapReduceOptions |
MapReduceOptions.outputTypeReduce()
If documents exists for a given key in the result set and in the old collection, then a reduce operation (using the specified reduce function) will be performed on the two values and the result will be written to the output collection. |
MapReduceOptions |
MapReduceOptions.outputTypeReplace()
The output will be inserted into a collection which will atomically replace any existing collection with the same name. |
MapReduceOptions |
MapReduceOptions.scopeVariables(Map<String,Object> scopeVariables)
Key-value pairs that are placed into JavaScript global scope and can be accessed from map, reduce, and finalize scripts. |
MapReduceOptions |
MapReduceOptions.verbose(boolean verbose)
Flag to set that will provide statistics on job execution time. |
|
Spring Data Document | |||||||||
PREV NEXT | FRAMES NO FRAMES |