line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::RecordStream::Aggregator::Records; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = "4.0.24"; |
4
|
|
|
|
|
|
|
|
5
|
6
|
|
|
6
|
|
57383
|
use strict; |
|
6
|
|
|
|
|
16
|
|
|
6
|
|
|
|
|
175
|
|
6
|
6
|
|
|
6
|
|
36
|
use warnings; |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
183
|
|
7
|
|
|
|
|
|
|
|
8
|
6
|
|
|
6
|
|
1842
|
use App::RecordStream::Aggregator::MapReduce; |
|
6
|
|
|
|
|
19
|
|
|
6
|
|
|
|
|
147
|
|
9
|
6
|
|
|
6
|
|
428
|
use App::RecordStream::Aggregator; |
|
6
|
|
|
|
|
16
|
|
|
6
|
|
|
|
|
144
|
|
10
|
6
|
|
|
6
|
|
519
|
use App::RecordStream::DomainLanguage::Registry; |
|
6
|
|
|
|
|
16
|
|
|
6
|
|
|
|
|
153
|
|
11
|
|
|
|
|
|
|
|
12
|
6
|
|
|
6
|
|
32
|
use base 'App::RecordStream::Aggregator::MapReduce'; |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
1287
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub new |
15
|
|
|
|
|
|
|
{ |
16
|
4
|
|
|
4
|
0
|
100
|
my $class = shift; |
17
|
|
|
|
|
|
|
|
18
|
4
|
|
|
|
|
10
|
my $this = |
19
|
|
|
|
|
|
|
{ |
20
|
|
|
|
|
|
|
}; |
21
|
|
|
|
|
|
|
|
22
|
4
|
|
|
|
|
8
|
bless $this, $class; |
23
|
|
|
|
|
|
|
|
24
|
4
|
|
|
|
|
11
|
return $this; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub map |
28
|
|
|
|
|
|
|
{ |
29
|
6
|
|
|
6
|
0
|
15
|
my ($this, $record) = @_; |
30
|
|
|
|
|
|
|
|
31
|
6
|
|
|
|
|
110
|
return [$record]; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub reduce |
35
|
|
|
|
|
|
|
{ |
36
|
4
|
|
|
4
|
0
|
8
|
my ($this, $cookie1, $cookie2) = @_; |
37
|
|
|
|
|
|
|
|
38
|
4
|
|
|
|
|
12
|
return [@$cookie1, @$cookie2]; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
sub argct |
42
|
|
|
|
|
|
|
{ |
43
|
0
|
|
|
0
|
0
|
|
return 0; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
sub short_usage |
47
|
|
|
|
|
|
|
{ |
48
|
0
|
|
|
0
|
0
|
|
return "returns an arrayref of all records"; |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
sub long_usage |
52
|
|
|
|
|
|
|
{ |
53
|
0
|
|
|
0
|
0
|
|
return <
|
54
|
|
|
|
|
|
|
Usage: records |
55
|
|
|
|
|
|
|
An arrayref of all records. |
56
|
|
|
|
|
|
|
EOF |
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
App::RecordStream::Aggregator->register_implementation('records', __PACKAGE__); |
60
|
|
|
|
|
|
|
App::RecordStream::Aggregator->register_implementation('recs', __PACKAGE__); |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
App::RecordStream::DomainLanguage::Registry::register_ctor(__PACKAGE__, 'records'); |
63
|
|
|
|
|
|
|
App::RecordStream::DomainLanguage::Registry::register_ctor(__PACKAGE__, 'recs'); |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
1; |