« blib/lib/App/RecordStream/Clumper/CubeKeyPerfect.pm
↑ Summary
blib/lib/App/RecordStream/Aggregator/MapReduce/FieldSet.pm »
| 1 | package App::RecordStream::Aggregator::Last; | ||
| 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::InjectInto::Field; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 7 | ▶ | use App::RecordStream::DomainLanguage::Registry; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 7 | ▶ | use base qw(App::RecordStream::Aggregator::InjectInto::Field); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | #sub new -- passed through | ||
| 14 | |||
| 15 | #sub new_from_valuation -- passed through | ||
| 16 | |||
| 17 | sub combine_field | ||
| 18 | { | ||
| 19 | 216 | ▶ | my $this = shift; |
|
Subroutine
combine_field: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 20 | 216 | my $cookie = shift; | |
| 21 | 216 | my $value = shift; | |
| 22 | |||
| 23 | 216 | return $value; | |
| 24 | } | ||
| 25 | |||
| 26 | sub short_usage | ||
| 27 | { | ||
| 28 | 1 | ▶ | return "last value for a field"; |
|
Subroutine
short_usage: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 29 | } | ||
| 30 | |||
| 31 | sub long_usage | ||
| 32 | { | ||
| 33 | 0 | ▶ | return <<EOF; |
|
Subroutine
long_usage: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 34 | Usage: last,<field> | ||
| 35 | Last value of specified field. | ||
| 36 | EOF | ||
| 37 | } | ||
| 38 | |||
| 39 | 7 | App::RecordStream::Aggregator->register_implementation('last', __PACKAGE__); | |
| 40 | |||
| 41 | 7 | App::RecordStream::DomainLanguage::Registry::register_vfn(__PACKAGE__, 'new_from_valuation', 'last', 'VALUATION'); | |
| 42 | |||
| 43 | 7 | 1; | |