« blib/lib/App/RecordStream/Aggregator/MapReduce/FieldSet.pm
↑ Summary
blib/lib/App/RecordStream/Aggregator/StandardDeviation.pm »
| 1 | package App::RecordStream::Aggregator::Sum; | ||
| 2 | |||
| 3 | 7 | our $VERSION = "4.0.23"; | |
| 4 | |||
| 5 | 7 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 7 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 7 | ▶ | use App::RecordStream::Aggregator::MapReduce::Field; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 7 | ▶ | use App::RecordStream::Aggregator; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 7 | ▶ | use App::RecordStream::DomainLanguage::Registry; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 7 | ▶ | use base 'App::RecordStream::Aggregator::MapReduce::Field'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | #sub new -- passed through | ||
| 15 | |||
| 16 | #sub new_from_valuation -- passed through | ||
| 17 | |||
| 18 | sub reduce | ||
| 19 | { | ||
| 20 | 42 | ▶ | my ($this, $cookie, $cookie2) = @_; |
|
Subroutine
reduce: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 21 | |||
| 22 | 42 | return $cookie + $cookie2; | |
| 23 | } | ||
| 24 | |||
| 25 | sub long_usage | ||
| 26 | { | ||
| 27 | 0 | ▶ | return <<EOF; |
|
Subroutine
long_usage: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 28 | Usage: sum,<field> | ||
| 29 | Sums specified field. | ||
| 30 | EOF | ||
| 31 | } | ||
| 32 | |||
| 33 | sub short_usage | ||
| 34 | { | ||
| 35 | 1 | ▶ | return "sums provided field"; |
|
Subroutine
short_usage: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 36 | } | ||
| 37 | |||
| 38 | 7 | App::RecordStream::Aggregator->register_implementation('sum', __PACKAGE__); | |
| 39 | |||
| 40 | 7 | App::RecordStream::DomainLanguage::Registry::register_vfn(__PACKAGE__, 'new_from_valuation', 'sum', 'VALUATION'); | |
| 41 | |||
| 42 | 7 | 1; | |