« blib/lib/App/RecordStream/Aggregator/InjectInto/Subrefs.pm
↑ Summary
blib/lib/App/RecordStream/Stream/Sub.pm »
| 1 | package App::RecordStream::Aggregator::MapReduce::Subrefs; | ||
| 2 | |||
| 3 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 6 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 6 | ▶ | use App::RecordStream::Aggregator::MapReduce; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 6 | ▶ | use base 'App::RecordStream::Aggregator::MapReduce'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | sub new | ||
| 11 | { | ||
| 12 | 42 | ▶ | my $class = shift; |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 13 | 42 | my $map = shift; | |
| 14 | 42 | my $reduce = shift; | |
| 15 | 42 | my $squish = shift; | |
| 16 | |||
| 17 | 42 | my $this = | |
| 18 | { | ||
| 19 | 'map' => $map, | ||
| 20 | 'reduce' => $reduce, | ||
| 21 | 'squish' => $squish, | ||
| 22 | }; | ||
| 23 | |||
| 24 | 42 | bless $this, $class; | |
| 25 | |||
| 26 | 42 | return $this; | |
| 27 | } | ||
| 28 | |||
| 29 | sub map | ||
| 30 | { | ||
| 31 | 46 | ▶ | my $this = shift; |
|
Subroutine
map: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 32 | |||
| 33 | 46 | return $this->{'map'}->(@_); | |
| 34 | } | ||
| 35 | |||
| 36 | sub reduce | ||
| 37 | { | ||
| 38 | 29 | ▶ | my $this = shift; |
|
Subroutine
reduce: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 39 | |||
| 40 | 29 | return $this->{'reduce'}->(@_); | |
| 41 | } | ||
| 42 | |||
| 43 | sub squish | ||
| 44 | { | ||
| 45 | 14 | ▶ | my $this = shift; |
|
Subroutine
squish: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 46 | |||
| 47 | 14 | return $this->{'squish'}->(@_); | |
| 48 | } | ||
| 49 | |||
| 50 | 6 | 1; | |