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