Click or drag to resize
RiakMapReduceQueryReduceErlang Method
Add an Erlang reduce phase to the list of phases.

Namespace:  RiakClient.Models.MapReduce
Assembly:  RiakClient (in RiakClient.dll) Version: f9bb17a3f8ff6940b88010a52f202e3d55fe25c5
Syntax
public RiakMapReduceQuery ReduceErlang(
	Action<RiakFluentActionPhaseErlang> setup
)

Parameters

setup
Type: SystemActionRiakFluentActionPhaseErlang
An ActionT that accepts a RiakFluentActionPhaseErlang, and configures the reduce phase with it.

Return Value

Type: RiakMapReduceQuery
A reference to this updated instance, for fluent chaining.
Remarks
Configure the phase with a lambda similar to:
.ReduceErlang(r => r.ModFun("riak_kv_mapreduce", "reduce_set_union")
The code above will run the "riak_kv_mapreduce:reduce_set_union" Erlang function on the phase inputs.
See Also