line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::RecordStream::Clumper::Key; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
29
|
use strict; |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
123
|
|
4
|
4
|
|
|
4
|
|
24
|
use warnings; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
113
|
|
5
|
|
|
|
|
|
|
|
6
|
4
|
|
|
4
|
|
1209
|
use App::RecordStream::Clumper::Key::WrappedCallback; |
|
4
|
|
|
|
|
13
|
|
|
4
|
|
|
|
|
161
|
|
7
|
4
|
|
|
4
|
|
29
|
use App::RecordStream::Clumper; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
106
|
|
8
|
|
|
|
|
|
|
|
9
|
4
|
|
|
4
|
|
25
|
use base 'App::RecordStream::Clumper'; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
1695
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub new |
12
|
|
|
|
|
|
|
{ |
13
|
7
|
|
|
7
|
0
|
20
|
my $class = shift; |
14
|
7
|
|
|
|
|
17
|
my $field = shift; |
15
|
|
|
|
|
|
|
|
16
|
7
|
|
|
|
|
77
|
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
|
42
|
my $class = shift; |
22
|
20
|
|
|
|
|
45
|
my $name = shift; |
23
|
20
|
|
|
|
|
39
|
my $valuation = shift; |
24
|
|
|
|
|
|
|
|
25
|
20
|
|
|
|
|
77
|
my $this = |
26
|
|
|
|
|
|
|
{ |
27
|
|
|
|
|
|
|
'name' => $name, |
28
|
|
|
|
|
|
|
'valuation' => $valuation, |
29
|
|
|
|
|
|
|
}; |
30
|
20
|
|
|
|
|
46
|
bless $this, $class; |
31
|
|
|
|
|
|
|
|
32
|
20
|
|
|
|
|
72
|
return $this; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub evaluate_record |
36
|
|
|
|
|
|
|
{ |
37
|
161
|
|
|
161
|
0
|
364
|
my $this = shift; |
38
|
161
|
|
|
|
|
248
|
my $record = shift; |
39
|
|
|
|
|
|
|
|
40
|
161
|
|
|
|
|
492
|
my $v = $this->{'valuation'}->evaluate_record($record); |
41
|
161
|
100
|
|
|
|
523
|
if(!defined($v)) |
42
|
|
|
|
|
|
|
{ |
43
|
2
|
|
|
|
|
5
|
$v = ""; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
161
|
|
|
|
|
396
|
return $v; |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub clumper_begin |
50
|
|
|
|
|
|
|
{ |
51
|
31
|
|
|
31
|
0
|
67
|
my $this = shift; |
52
|
31
|
|
|
|
|
54
|
my $bucket = shift; |
53
|
|
|
|
|
|
|
|
54
|
31
|
|
|
|
|
175
|
return [$bucket, $this->key_clumper_begin()]; |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
sub clumper_push_record |
58
|
|
|
|
|
|
|
{ |
59
|
161
|
|
|
161
|
0
|
290
|
my $this = shift; |
60
|
161
|
|
|
|
|
257
|
my $cookie = shift; |
61
|
161
|
|
|
|
|
336
|
my $record = shift; |
62
|
161
|
|
|
|
|
256
|
my $next = shift; |
63
|
|
|
|
|
|
|
|
64
|
161
|
|
|
|
|
396
|
my $name = $this->{'name'}; |
65
|
161
|
|
|
|
|
395
|
my $value = $this->evaluate_record($record); |
66
|
|
|
|
|
|
|
|
67
|
161
|
|
|
|
|
986
|
my $wrapped_next = App::RecordStream::Clumper::Key::WrappedCallback->new($next, $cookie->[0], $name, $value); |
68
|
|
|
|
|
|
|
|
69
|
161
|
|
|
|
|
651
|
$this->key_clumper_push_record($cookie->[1], $value, $record, $wrapped_next); |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
sub clumper_end |
73
|
|
|
|
|
|
|
{ |
74
|
31
|
|
|
31
|
0
|
63
|
my $this = shift; |
75
|
31
|
|
|
|
|
65
|
my $cookie = shift; |
76
|
31
|
|
|
|
|
56
|
my $next = shift; |
77
|
|
|
|
|
|
|
|
78
|
31
|
|
|
|
|
93
|
my $wrapped_next = App::RecordStream::Clumper::Key::WrappedCallback->new($next, undef); |
79
|
|
|
|
|
|
|
|
80
|
31
|
|
|
|
|
130
|
$this->key_clumper_end($cookie->[1], $wrapped_next); |
81
|
|
|
|
|
|
|
} |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
sub argct |
85
|
|
|
|
|
|
|
{ |
86
|
2
|
|
|
2
|
0
|
10
|
return 1; |
87
|
|
|
|
|
|
|
} |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
1; |