Phase

MapReducePhase

category

Basho

author

debo marco.debo.debortoli@gmail.com (https://github.com/MarcoDeBortoli)

Methods

Construct a Phase object.

__construct(string $type, mixed $function, string $language, boolean $keep, mixed $arg) 

Arguments

$type

string

  • "map" or "reduce"

$function

mixed

  • string or array()

$language

string

  • "javascript" or "erlang"

$keep

boolean

  • True to return the output of this phase in the results.

$arg

mixed

  • Additional value to pass into the map or reduce function.

Convert the Phase to an associative array. Used internally.

to_array()