line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::RecordStream::Clumper::Key; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
23
|
use strict; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
91
|
|
4
|
4
|
|
|
4
|
|
16
|
use warnings; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
79
|
|
5
|
|
|
|
|
|
|
|
6
|
4
|
|
|
4
|
|
1305
|
use App::RecordStream::Clumper::Key::WrappedCallback; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
94
|
|
7
|
4
|
|
|
4
|
|
21
|
use App::RecordStream::Clumper; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
69
|
|
8
|
|
|
|
|
|
|
|
9
|
4
|
|
|
4
|
|
17
|
use base 'App::RecordStream::Clumper'; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
1363
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub new |
12
|
|
|
|
|
|
|
{ |
13
|
7
|
|
|
7
|
0
|
13
|
my $class = shift; |
14
|
7
|
|
|
|
|
14
|
my $field = shift; |
15
|
|
|
|
|
|
|
|
16
|
7
|
|
|
|
|
51
|
return new_from_valuation($class, $field, App::RecordStream::DomainLanguage::Valuation::KeySpec->new($field)); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub new_from_valuation |
20
|
|
|
|
|
|
|
{ |
21
|
20
|
|
|
20
|
0
|
43
|
my $class = shift; |
22
|
20
|
|
|
|
|
38
|
my $name = shift; |
23
|
20
|
|
|
|
|
35
|
my $valuation = shift; |
24
|
|
|
|
|
|
|
|
25
|
20
|
|
|
|
|
60
|
my $this = |
26
|
|
|
|
|
|
|
{ |
27
|
|
|
|
|
|
|
'name' => $name, |
28
|
|
|
|
|
|
|
'valuation' => $valuation, |
29
|
|
|
|
|
|
|
}; |
30
|
20
|
|
|
|
|
53
|
bless $this, $class; |
31
|
|
|
|
|
|
|
|
32
|
20
|
|
|
|
|
58
|
return $this; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub evaluate_record |
36
|
|
|
|
|
|
|
{ |
37
|
161
|
|
|
161
|
0
|
245
|
my $this = shift; |
38
|
161
|
|
|
|
|
283
|
my $record = shift; |
39
|
|
|
|
|
|
|
|
40
|
161
|
|
|
|
|
493
|
my $v = $this->{'valuation'}->evaluate_record($record); |
41
|
161
|
100
|
|
|
|
430
|
if(!defined($v)) |
42
|
|
|
|
|
|
|
{ |
43
|
2
|
|
|
|
|
3
|
$v = ""; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
161
|
|
|
|
|
317
|
return $v; |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub clumper_begin |
50
|
|
|
|
|
|
|
{ |
51
|
31
|
|
|
31
|
0
|
55
|
my $this = shift; |
52
|
31
|
|
|
|
|
49
|
my $bucket = shift; |
53
|
|
|
|
|
|
|
|
54
|
31
|
|
|
|
|
104
|
return [$bucket, $this->key_clumper_begin()]; |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
sub clumper_push_record |
58
|
|
|
|
|
|
|
{ |
59
|
161
|
|
|
161
|
0
|
270
|
my $this = shift; |
60
|
161
|
|
|
|
|
238
|
my $cookie = shift; |
61
|
161
|
|
|
|
|
241
|
my $record = shift; |
62
|
161
|
|
|
|
|
254
|
my $next = shift; |
63
|
|
|
|
|
|
|
|
64
|
161
|
|
|
|
|
329
|
my $name = $this->{'name'}; |
65
|
161
|
|
|
|
|
365
|
my $value = $this->evaluate_record($record); |
66
|
|
|
|
|
|
|
|
67
|
161
|
|
|
|
|
630
|
my $wrapped_next = App::RecordStream::Clumper::Key::WrappedCallback->new($next, $cookie->[0], $name, $value); |
68
|
|
|
|
|
|
|
|
69
|
161
|
|
|
|
|
505
|
$this->key_clumper_push_record($cookie->[1], $value, $record, $wrapped_next); |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
sub clumper_end |
73
|
|
|
|
|
|
|
{ |
74
|
31
|
|
|
31
|
0
|
57
|
my $this = shift; |
75
|
31
|
|
|
|
|
52
|
my $cookie = shift; |
76
|
31
|
|
|
|
|
54
|
my $next = shift; |
77
|
|
|
|
|
|
|
|
78
|
31
|
|
|
|
|
93
|
my $wrapped_next = App::RecordStream::Clumper::Key::WrappedCallback->new($next, undef); |
79
|
|
|
|
|
|
|
|
80
|
31
|
|
|
|
|
112
|
$this->key_clumper_end($cookie->[1], $wrapped_next); |
81
|
|
|
|
|
|
|
} |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
sub argct |
85
|
|
|
|
|
|
|
{ |
86
|
2
|
|
|
2
|
0
|
6
|
return 1; |
87
|
|
|
|
|
|
|
} |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
1; |