Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 652 Bytes

The Yothalot\Values Class

The Yothalot\Values class is used to pass all values that share the same key to the reducer step. The class is traversable, so you can easily iterate over all your values by using foreach.

Using the Yothalot\Values class

The Yothalot\Values class is only used as an argument in the reduce() member of the Yothalot\MapReduce interface, and therefore you cannot construct it yourself. Using the Yothalot\Values class is easy, you just use foreach.

// When values is of type Yothalot\Values 
// You can iterate over the values with foreach
foreach ($values as $value)
    // do something with the value
You can’t perform that action at this time.