| 1 | package Data::Riak::Fast::MapReduce::Phase::Reduce; | ||
| 2 | 22 | ▶ | use Mouse; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | # ABSTRACT: Reduce phase of a MapReduce | ||
| 5 | |||
| 6 | 22 | extends 'Data::Riak::Fast::MapReduce::Phase::Map'; | |
| 7 | |||
| 8 | 22 | has phase => ( | |
| 9 | is => 'ro', | ||
| 10 | isa => 'Str', | ||
| 11 | default => 'reduce' | ||
| 12 | ); | ||
| 13 | |||
| 14 | =head1 DESCRIPTION | ||
| 15 | |||
| 16 | A map/reduce map phase for Data::Riak::Fast. See L<Data::Riak::Fast::MapReduce::Phase::Reduce> | ||
| 17 | for attribute information. | ||
| 18 | |||
| 19 | =head1 SYNOPSIS | ||
| 20 | |||
| 21 | my $mp = Data::Riak::Fast::MapReduce::Phase::Map->new( | ||
| 22 | language => "javascript", # The default | ||
| 23 | source => "function(v) { return [ v ] }", | ||
| 24 | keep => 1 # The default | ||
| 25 | ); | ||
| 26 | |||
| 27 | =cut | ||
| 28 | |||
| 29 | 22 | 1; | |