line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package KinoSearch1::Index::IndexFileNames; |
2
|
40
|
|
|
40
|
|
5803
|
use strict; |
|
40
|
|
|
|
|
76
|
|
|
40
|
|
|
|
|
1404
|
|
3
|
40
|
|
|
40
|
|
306
|
use warnings; |
|
40
|
|
|
|
|
72
|
|
|
40
|
|
|
|
|
1274
|
|
4
|
40
|
|
|
40
|
|
211
|
use KinoSearch1::Util::ToolSet; |
|
40
|
|
|
|
|
92
|
|
|
40
|
|
|
|
|
5956
|
|
5
|
|
|
|
|
|
|
|
6
|
40
|
|
|
40
|
|
221
|
use base qw( Exporter ); |
|
40
|
|
|
|
|
71
|
|
|
40
|
|
|
|
|
4724
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our @EXPORT_OK = qw( |
9
|
|
|
|
|
|
|
SEGMENTS |
10
|
|
|
|
|
|
|
DELETEABLE |
11
|
|
|
|
|
|
|
SORTFILE_EXTENSION |
12
|
|
|
|
|
|
|
@INDEX_EXTENSIONS |
13
|
|
|
|
|
|
|
@COMPOUND_EXTENSIONS |
14
|
|
|
|
|
|
|
@VECTOR_EXTENSIONS |
15
|
|
|
|
|
|
|
@SCRATCH_EXTENSIONS |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
WRITE_LOCK_NAME |
18
|
|
|
|
|
|
|
WRITE_LOCK_TIMEOUT |
19
|
|
|
|
|
|
|
COMMIT_LOCK_NAME |
20
|
|
|
|
|
|
|
COMMIT_LOCK_TIMEOUT |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# name of the index segments file |
24
|
40
|
|
|
40
|
|
323
|
use constant SEGMENTS => 'segments'; |
|
40
|
|
|
|
|
76
|
|
|
40
|
|
|
|
|
2621
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
# name of the index deletable file |
27
|
40
|
|
|
40
|
|
290
|
use constant DELETABLE => 'deletable'; |
|
40
|
|
|
|
|
80
|
|
|
40
|
|
|
|
|
2476
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# extension of the temporary file used by the SortExternal sort pool |
30
|
40
|
|
|
40
|
|
207
|
use constant SORTFILE_EXTENSION => '.srt'; |
|
40
|
|
|
|
|
96
|
|
|
40
|
|
|
|
|
6448
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
# Most, but not all of Lucene file extenstions. Missing are the ".f$num" |
33
|
|
|
|
|
|
|
# extensions. Also note that 'segments' and 'deletable' don't have |
34
|
|
|
|
|
|
|
# extensions. |
35
|
|
|
|
|
|
|
our @INDEX_EXTENSIONS |
36
|
|
|
|
|
|
|
= qw( cfs fnm fdx fdt tii tis frq prx del tvx tvd tvf tvp ); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
# extensions for files which are subsumed into the cfs compound file |
39
|
|
|
|
|
|
|
our @COMPOUND_EXTENSIONS = qw( fnm frq prx fdx fdt tii tis ); |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
# file extensions for term vectors |
42
|
|
|
|
|
|
|
our @VECTOR_EXTENSIONS = qw( tvd tvx tvf ); |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
our @SCRATCH_EXTENSIONS = qw( srt ); |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
# names and constants for lockfiles |
47
|
40
|
|
|
40
|
|
449
|
use constant WRITE_LOCK_NAME => 'write.lock'; |
|
40
|
|
|
|
|
84
|
|
|
40
|
|
|
|
|
1917
|
|
48
|
40
|
|
|
40
|
|
208
|
use constant COMMIT_LOCK_NAME => 'commit.lock'; |
|
40
|
|
|
|
|
82
|
|
|
40
|
|
|
|
|
2834
|
|
49
|
40
|
|
|
40
|
|
372
|
use constant WRITE_LOCK_TIMEOUT => 1000; |
|
40
|
|
|
|
|
78
|
|
|
40
|
|
|
|
|
1798
|
|
50
|
40
|
|
|
40
|
|
209
|
use constant COMMIT_LOCK_TIMEOUT => 10_000; |
|
40
|
|
|
|
|
65
|
|
|
40
|
|
|
|
|
2529
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
__END__ |