| 1 | package Data::Riak::Fast::MapReduce::Phase; | ||
| 2 | |||
| 3 | 22 | ▶ | use Mouse::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | =head1 DESCRIPTION | ||
| 6 | |||
| 7 | The Phase role contains common code used by all the Data::Riak::Fast::MapReduce | ||
| 8 | phase classes. | ||
| 9 | |||
| 10 | =head2 keep | ||
| 11 | |||
| 12 | Flag controlling whether the results of this phase are included in the final | ||
| 13 | result of the map/reduce. | ||
| 14 | |||
| 15 | =head1 METHOD | ||
| 16 | =head2 pack() | ||
| 17 | |||
| 18 | The C<pack> method is required to be implemented by consumers of this role. | ||
| 19 | |||
| 20 | =cut | ||
| 21 | |||
| 22 | 22 | has keep => ( | |
| 23 | is => 'rw', | ||
| 24 | isa => 'Bool', | ||
| 25 | predicate => 'has_keep', | ||
| 26 | ); | ||
| 27 | |||
| 28 | 22 | requires 'pack'; | |
| 29 | |||
| 30 | 22 | ▶ | no Mouse::Role; 1; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||