public static interface ScriptOperators.Accumulator.AccumulatorAccumulateBuilder
| Modifier and Type | Method and Description |
|---|---|
default ScriptOperators.Accumulator.AccumulatorMergeBuilder |
accumulate(ScriptOperators.Function function)
Set the
accumulate ScriptOperators.Function that updates the state for each document. |
ScriptOperators.Accumulator.AccumulatorAccumulateArgsBuilder |
accumulate(String function)
Set the
accumulate function that updates the state for each document. |
default ScriptOperators.Accumulator.AccumulatorMergeBuilder accumulate(ScriptOperators.Function function)
accumulate ScriptOperators.Function that updates the state for each document. The functions first
argument is the current state, additional arguments can be defined via accumulateArgs.
function(state, accumArg1, accumArg2, ...) {
...
return newState
}
function - must not be null.ScriptOperators.Accumulator.AccumulatorAccumulateArgsBuilder accumulate(String function)
accumulate function that updates the state for each document. The functions first argument is
the current state, additional arguments can be defined via
ScriptOperators.Accumulator.AccumulatorAccumulateArgsBuilder.accumulateArgs(Object...).
function(state, accumArg1, accumArg2, ...) {
...
return newState
}
function - must not be null.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.