DOKK / manpages / debian 12 / libplucene-perl / Plucene::Index::TermInfosReader.3pm.en
Plucene::Index::TermInfosReader(3pm) User Contributed Perl Documentation Plucene::Index::TermInfosReader(3pm)

Plucene::Index::TermInfosReader - read the term infos file

        my $reader = Plucene::Index::TermInfosReader->new(
                        $dir_name, $segment, $fis);
        my Plucene::Index::TermInfo $term_info = 
                $reader->get(Plucene::Index::Term $term);
                
        my Plucene::Index::SegmentTermEnum $enum = 
                $reader->terms(Plucene::Index::Term $term);

This reads a term infos file.

        my $reader = Plucene::Index::TermInfosReader->new(
                        $dir_name, $segment, $fis);

This will create a new Plucene::Index::TermInfosReader object with the passed directory name, segment name and field infos.

        my Plucene::Index::TermInfo $term_info = 
                $reader->get(Plucene::Index::Term $term);

These are never called.

        my Plucene::Index::SegmentTermEnum $enum = 
                $reader->terms(Plucene::Index::Term $term);

This will return the Plucene::Index::SegmentTermEnum for the passed-in Plucene::Index::Term.

2022-12-04 perl v5.36.0