⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 indexfilenames.pm

📁 外国人写的Perl搜索引擎程序
💻 PM
字号:
package KinoSearch::Index::IndexFileNames;use strict;use warnings;use KinoSearch::Util::ToolSet;use base qw( Exporter );our @EXPORT_OK = qw(    SEGMENTS    DELETEABLE    SORTFILE_EXTENSION    @INDEX_EXTENSIONS    @COMPOUND_EXTENSIONS    @VECTOR_EXTENSIONS    @SCRATCH_EXTENSIONS    WRITE_LOCK_NAME    WRITE_LOCK_TIMEOUT    COMMIT_LOCK_NAME    COMMIT_LOCK_TIMEOUT);# name of the index segments fileuse constant SEGMENTS => 'segments';# name of the index deletable fileuse constant DELETABLE => 'deletable';# extension of the temporary file used by the SortExternal sort pooluse constant SORTFILE_EXTENSION => '.srt';# Most, but not all of Lucene file extenstions. Missing are the ".f$num"# extensions.  Also note that 'segments' and 'deletable' don't have# extensions.our @INDEX_EXTENSIONS    = qw( cfs fnm fdx fdt tii tis frq prx del tvx tvd tvf tvp );# extensions for files which are subsumed into the cfs compound fileour @COMPOUND_EXTENSIONS = qw( fnm frq prx fdx fdt tii tis );# file extensions for term vectorsour @VECTOR_EXTENSIONS = qw( tvd tvx tvf );our @SCRATCH_EXTENSIONS = qw( srt );# names and constants for lockfilesuse constant WRITE_LOCK_NAME     => 'write.lock';use constant COMMIT_LOCK_NAME    => 'commit.lock';use constant WRITE_LOCK_TIMEOUT  => 1000;use constant COMMIT_LOCK_TIMEOUT => 10_000;1;__END__=begin devdocs=head1 NAMEKinoSearch::Index::IndexFileNames - filenames and suffixes used in an invindex=head1 DESCRIPTIONThis module abstracts the names of the files that make up an invindex,similarly to the way InStream and OutStream abstract filehandle operations.=head1 COPYRIGHTCopyright 2005-2007 Marvin Humphrey=head1 LICENSE, DISCLAIMER, BUGS, etc.See L<KinoSearch|KinoSearch> version 0.163.=end devdocs=cut

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -