line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package KinoSearch1::Index::TermVector; |
2
|
34
|
|
|
34
|
|
186
|
use strict; |
|
34
|
|
|
|
|
68
|
|
|
34
|
|
|
|
|
1229
|
|
3
|
34
|
|
|
34
|
|
190
|
use warnings; |
|
34
|
|
|
|
|
69
|
|
|
34
|
|
|
|
|
897
|
|
4
|
34
|
|
|
34
|
|
175
|
use KinoSearch1::Util::ToolSet; |
|
34
|
|
|
|
|
72
|
|
|
34
|
|
|
|
|
5006
|
|
5
|
34
|
|
|
34
|
|
229
|
use base qw( KinoSearch1::Util::Class ); |
|
34
|
|
|
|
|
71
|
|
|
34
|
|
|
|
|
4307
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
BEGIN { |
8
|
34
|
|
|
34
|
|
315
|
__PACKAGE__->init_instance_vars( |
9
|
|
|
|
|
|
|
# params / members |
10
|
|
|
|
|
|
|
field => undef, |
11
|
|
|
|
|
|
|
text => undef, |
12
|
|
|
|
|
|
|
positions => undef, |
13
|
|
|
|
|
|
|
start_offsets => undef, |
14
|
|
|
|
|
|
|
end_offsets => undef, |
15
|
|
|
|
|
|
|
); |
16
|
34
|
|
|
|
|
282
|
__PACKAGE__->ready_get_set( |
17
|
|
|
|
|
|
|
qw( |
18
|
|
|
|
|
|
|
field |
19
|
|
|
|
|
|
|
text |
20
|
|
|
|
|
|
|
positions |
21
|
|
|
|
|
|
|
start_offsets |
22
|
|
|
|
|
|
|
end_offsets |
23
|
|
|
|
|
|
|
) |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub init_instance { |
28
|
11
|
|
|
11
|
1
|
12
|
my $self = shift; |
29
|
11
|
|
50
|
|
|
72
|
$self->{$_} ||= [] for qw( positions start_offsets end_offsets ); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |