📄 termenum.pm
字号:
package KinoSearch::Index::TermEnum;use strict;use warnings;use KinoSearch::Util::ToolSet;use base qw( KinoSearch::Util::CClass );BEGIN { __PACKAGE__->init_instance_vars(); }=begin comment $term_enum->seek($term);Locate the Enum to a particular spot.=end comment=cutsub seek { shift->abstract_death }=begin comment my $evil_twin = $term_enum->clone_enum;Return a dupe, in the same state as the orig.=end comment=cutsub clone_enum { shift->abstract_death }=begin comment my $not_end_of_enum_yet = $term_enum->next;Proceed to the next term. Return true until we fall off the end of the Enum,then return false.=end comment=cutsub next { shift->abstract_death }sub skip_to { shift->todo_death }=begin comment my $termstring = $term_enum->get_termstring;Return a termstring, if the Enum is in a state where it's valid to do so.Otherwise, return undef.=end comment=cutsub get_termstring { shift->abstract_death }sub get_terminfo { shift->abstract_death }sub get_index_interval { shift->abstract_death }sub get_size { shift->abstract_death }sub close { shift->abstract_death }1;__END__=begin devdocs=head1 NAMEKinoSearch::Index::TermEnum - scan through a list of Terms=head1 SYNOPSIS # abstract base class=head1 DESCRIPTIONConceptually, a TermEnum is a array of Term => TermInfo pairs, sortedlexically by term field name, then term text. The implementations inKinoSearch solve the same problem that tied arrays solve: it is possible toiterate through the array while loading as little as possible into memory.=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 + -