Plucen...sWriter(3pm)

πŸ“¦
version 1.25 Β· 2 versions
  • 1.25 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.25 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

okay so bestie, welcome to Plucene::Index::TermInfosWriter β€” it's the Perl module (that's the 3pm thing, she lives in the User Contributed Perl Documentation section, iykyk) whose whole entire job is writing 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);

πŸ¦‹ DESCRIPTION πŸ¦‹

So basically this lets you write and add to a term infos file for one specific segment β€” like, a particular segment, not all of them, okay? ✨ And not only that, it also writes the term infos index. Two jobs, one icon, no cap πŸ’–


🌸 METHODS 🌸

πŸ’œ new

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

This will create a new Plucene::Index::TermInfosWriter object. Fresh new writer, main character energy, periodt πŸ‘‘

🧚 break_ref

This will break a circular reference. literally just untangling the situationship between your refs, you're welcome 🫢

⭐ 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. yes bestie, the term AND the term info, both of them, going in πŸ’…

🌈 write_term

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

This will write the term to the term infos file. that's it, that's the whole vibe, it writes the term ✨


and that's a wrap on the Plucen...sWriter(3pm) page, babe β€” this lil doc is from perl v5.36.0, dated 2022-12-04, and honestly? iconic. go forth and write those term infos πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from