line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::RecordStream::Aggregator::Last; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = "4.0.25"; |
4
|
|
|
|
|
|
|
|
5
|
6
|
|
|
6
|
|
3250
|
use strict; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
138
|
|
6
|
6
|
|
|
6
|
|
27
|
use warnings; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
166
|
|
7
|
|
|
|
|
|
|
|
8
|
6
|
|
|
6
|
|
420
|
use App::RecordStream::Aggregator::InjectInto::Field; |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
123
|
|
9
|
6
|
|
|
6
|
|
25
|
use App::RecordStream::DomainLanguage::Registry; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
140
|
|
10
|
|
|
|
|
|
|
|
11
|
6
|
|
|
6
|
|
38
|
use base qw(App::RecordStream::Aggregator::InjectInto::Field); |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
1106
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
#sub new -- passed through |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
#sub new_from_valuation -- passed through |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub combine_field |
18
|
|
|
|
|
|
|
{ |
19
|
216
|
|
|
216
|
0
|
297
|
my $this = shift; |
20
|
216
|
|
|
|
|
261
|
my $cookie = shift; |
21
|
216
|
|
|
|
|
265
|
my $value = shift; |
22
|
|
|
|
|
|
|
|
23
|
216
|
|
|
|
|
621
|
return $value; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub short_usage |
27
|
|
|
|
|
|
|
{ |
28
|
0
|
|
|
0
|
0
|
|
return "last value for a field"; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub long_usage |
32
|
|
|
|
|
|
|
{ |
33
|
0
|
|
|
0
|
0
|
|
return <
|
34
|
|
|
|
|
|
|
Usage: last, |
35
|
|
|
|
|
|
|
Last value of specified field. |
36
|
|
|
|
|
|
|
EOF |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
App::RecordStream::Aggregator->register_implementation('last', __PACKAGE__); |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
App::RecordStream::DomainLanguage::Registry::register_vfn(__PACKAGE__, 'new_from_valuation', 'last', 'VALUATION'); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |