line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::RecordStream::Aggregator::Last; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = "4.0.24"; |
4
|
|
|
|
|
|
|
|
5
|
6
|
|
|
6
|
|
10699
|
use strict; |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
199
|
|
6
|
6
|
|
|
6
|
|
32
|
use warnings; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
180
|
|
7
|
|
|
|
|
|
|
|
8
|
6
|
|
|
6
|
|
1836
|
use App::RecordStream::Aggregator::InjectInto::Field; |
|
6
|
|
|
|
|
18
|
|
|
6
|
|
|
|
|
148
|
|
9
|
6
|
|
|
6
|
|
39
|
use App::RecordStream::DomainLanguage::Registry; |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
121
|
|
10
|
|
|
|
|
|
|
|
11
|
6
|
|
|
6
|
|
29
|
use base qw(App::RecordStream::Aggregator::InjectInto::Field); |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
827
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
#sub new -- passed through |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
#sub new_from_valuation -- passed through |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub combine_field |
18
|
|
|
|
|
|
|
{ |
19
|
216
|
|
|
216
|
0
|
299
|
my $this = shift; |
20
|
216
|
|
|
|
|
259
|
my $cookie = shift; |
21
|
216
|
|
|
|
|
243
|
my $value = shift; |
22
|
|
|
|
|
|
|
|
23
|
216
|
|
|
|
|
684
|
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; |