accumulator
Creates an $accumulator pipeline stage
Return
the $accumulator pipeline stage @mongodb.driver.manual reference/operator/aggregation/accumulator/ $accumulator @mongodb.server.release 4.4
Parameters
the data class property
a function used to initialize the state
a function used to accumulate documents
a function used to merge two internal states, e.g. accumulated on different shards or threads. It returns the resulting state of the accumulator.
Creates an $accumulator pipeline stage
Return
the $accumulator pipeline stage @mongodb.driver.manual reference/operator/aggregation/accumulator/ $accumulator @mongodb.server.release 4.4
Parameters
the data class property
a function used to initialize the state
a function used to accumulate documents
a function used to merge two internal states, e.g. accumulated on different shards or threads. It returns the resulting state of the accumulator.
a function used to finalize the state and return the result (may be null)
Creates an $accumulator pipeline stage
Return
the $accumulator pipeline stage @mongodb.driver.manual reference/operator/aggregation/accumulator/ $accumulator @mongodb.server.release 4.4
Parameters
the data class property
a function used to initialize the state
init function’s arguments (may be null)
a function used to accumulate documents
additional accumulate function’s arguments (may be null). The first argument to the function is ‘state’.
a function used to merge two internal states, e.g. accumulated on different shards or threads. It returns the resulting state of the accumulator.
a function used to finalize the state and return the result (may be null)
Creates an $accumulator pipeline stage
Return
the $accumulator pipeline stage @mongodb.driver.manual reference/operator/aggregation/accumulator/ $accumulator @mongodb.server.release 4.4
Parameters
the data class property
a function used to initialize the state
a function used to accumulate documents
a function used to merge two internal states, e.g. accumulated on different shards or threads. It returns the resulting state of the accumulator.
a function used to finalize the state and return the result (may be null)
a language specifier
Creates an $accumulator pipeline stage
Return
the $accumulator pipeline stage @mongodb.driver.manual reference/operator/aggregation/accumulator/ $accumulator @mongodb.server.release 4.4
Parameters
The data class property.
a function used to initialize the state
init function’s arguments (may be null)
a function used to accumulate documents
additional accumulate function’s arguments (may be null). The first argument to the function is ‘state’.
a function used to merge two internal states, e.g. accumulated on different shards or threads. It returns the resulting state of the accumulator.
a function used to finalize the state and return the result (may be null)
a language specifier