Module spring.data.mongodb
Interface ExecutableMapReduceOperation.MapReduceWithMapFunction<T>
- All Known Subinterfaces:
ExecutableMapReduceOperation.ExecutableMapReduce<T>
- Enclosing interface:
- ExecutableMapReduceOperation
public static interface ExecutableMapReduceOperation.MapReduceWithMapFunction<T>
Provide the Javascript
function() used to map matching documents.- Since:
- 2.1
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionSet the Javascript mapfunction().
-
Method Details
-
map
Set the Javascript mapfunction().- Parameters:
mapFunction- must not be null nor empty.- Returns:
- new instance of
ExecutableMapReduceOperation.MapReduceWithReduceFunction. - Throws:
IllegalArgumentException- if mapFunction is null or empty.
-