logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Plucene::Index::TermInfosWriter - write to the term infos file

Description

       This will allow for the writing and adding to a term infos file for a particular segment. It also writes
       the term infos index.

Methods

new
               my $writer = Plucene::Index::TermInfosWriter->new(
                       $dir_name, $segment, $field_infos);

       This will create a new Plucene::Index::TermInfosWriter object.

   break_ref
       This will break a circular reference.

   add
               $writer->add(Plucene::Index::Term $term,
                               Plucene::Index::TermInfo $term_info);

       This will add the term and term info to the term infos file.

   write_term
               $writer->write_term(Plucene::Index::Term $term);

       This will write the term to the term infos file.

perl v5.36.0                                       2022-12-04               Plucene::Index::TermInfosWriter(3pm)

Name

       Plucene::Index::TermInfosWriter - write to the term infos file

Synopsis

               my $writer = Plucene::Index::TermInfosWriter->new(
                       $dir_name, $segment, $field_infos);

               $writer->add(Plucene::Index::Term $term,
                               Plucene::Index::TermInfo $term_info);

               $writer->write_term(Plucene::Index::Term $term);

See Also