2017 © Pedro Peláez
 

library map-reduce

MapReduce implementation

image

slava-vishnyakov/map-reduce

MapReduce implementation

  • Tuesday, April 24, 2018
  • by slava-vishnyakov
  • Repository
  • 0 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

composer require slava-vishnyakov/map-reduce
use \SlavaVishnyakov\MapReduce\MapReduceMemory;

$m = new MapReduceMemory(); // or MapReduceProcess
$m->send('a', 1);
$m->send('b', 1);
$m->send('a', 2);

foreach($m->iter() as $key => $groups) {
// yields
$key = 'a', $groups = [1,2]
$key = 'b', $groups = [1]

Also can be done via next() calls:, (*1)

$m = new MapReduceMemory(); // or MapReduceProcess
$m->send('a', 1);
$m->send('b', 1);
$m->send('a', 2);
$m->send('a', new stdClass);

$m->next() ==> ['a', [1, 2, new stdClass]] 
$m->next() ==> ['b', [1]]
$m->next() ==> null

There are two implementations MapReduceMemory and MapReduceProcess., (*2)

The first does all sorting in memory, the second is for memory-hungry workloads, uses /usr/bin/sort to process basically unlimited amount of data., (*3)

The Versions

24/04 2018

dev-master

9999999-dev

MapReduce implementation

  Sources   Download

MIT

The Development Requires

17/04 2018

1.0.3

1.0.3.0

MapReduce implementation

  Sources   Download

MIT

The Development Requires

17/04 2018

1.0.2

1.0.2.0

MapReduce implementation

  Sources   Download

MIT

The Development Requires

17/04 2018

1.0.1

1.0.1.0

MapReduce implementation

  Sources   Download

MIT

The Development Requires

17/04 2018

0.2

0.2.0.0

MapReduce implementation

  Sources   Download

MIT

The Development Requires

17/04 2018

1.0

1.0.0.0

MapReduce implementation

  Sources   Download

MIT

The Development Requires

17/04 2018

0.1

0.1.0.0

MapReduce implementation

  Sources   Download

The Development Requires