line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::RecordStream::Aggregator::LastRecord; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = "4.0.24"; |
4
|
|
|
|
|
|
|
|
5
|
5
|
|
|
5
|
|
2375
|
use strict; |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
129
|
|
6
|
5
|
|
|
5
|
|
24
|
use warnings; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
118
|
|
7
|
|
|
|
|
|
|
|
8
|
5
|
|
|
5
|
|
25
|
use App::RecordStream::Aggregator::InjectInto; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
88
|
|
9
|
5
|
|
|
5
|
|
22
|
use App::RecordStream::DomainLanguage::Registry; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
103
|
|
10
|
|
|
|
|
|
|
|
11
|
5
|
|
|
5
|
|
127
|
use base qw(App::RecordStream::Aggregator::InjectInto); |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
834
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub combine |
14
|
|
|
|
|
|
|
{ |
15
|
0
|
|
|
0
|
0
|
|
my $this = shift; |
16
|
0
|
|
|
|
|
|
my $cookie = shift; |
17
|
0
|
|
|
|
|
|
my $record = shift; |
18
|
|
|
|
|
|
|
|
19
|
0
|
|
|
|
|
|
return $record; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub short_usage |
23
|
|
|
|
|
|
|
{ |
24
|
0
|
|
|
0
|
0
|
|
return "last record seen"; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub long_usage |
28
|
|
|
|
|
|
|
{ |
29
|
0
|
|
|
0
|
0
|
|
return <
|
30
|
|
|
|
|
|
|
Usage: last_record |
31
|
|
|
|
|
|
|
Last record seen. |
32
|
|
|
|
|
|
|
EOF |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub argct |
36
|
|
|
|
|
|
|
{ |
37
|
0
|
|
|
0
|
0
|
|
return 0; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
App::RecordStream::Aggregator->register_implementation('lastrecord', __PACKAGE__); |
41
|
|
|
|
|
|
|
App::RecordStream::Aggregator->register_implementation('lastrec', __PACKAGE__); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
App::RecordStream::DomainLanguage::Registry::register_ctor(__PACKAGE__, 'lastrecord'); |
44
|
|
|
|
|
|
|
App::RecordStream::DomainLanguage::Registry::register_ctor(__PACKAGE__, 'lastrec'); |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; |