Module spring.data.mongodb
Interface ScriptOperators.Accumulator.AccumulatorFinalizeBuilder
- Enclosing class:
- ScriptOperators.Accumulator
public static interface ScriptOperators.Accumulator.AccumulatorFinalizeBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build theScriptOperators.Accumulatorobject without specifying afinalize function.Set thefinalizefunction used to update the result of the accumulation when all documents have been processed.
-
Method Details
-
finalize
Set thefinalizefunction used to update the result of the accumulation when all documents have been processed.
function(state) { ... return finalState }- Parameters:
function- must not be null.- Returns:
- new instance of
ScriptOperators.Accumulator.
-
build
ScriptOperators.Accumulator build()Build theScriptOperators.Accumulatorobject without specifying afinalize function.- Returns:
- new instance of
ScriptOperators.Accumulator.
-