Plucen...tInfos(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

πŸ’– Plucen...tInfos β€” the 3pm manual page, but make it cute πŸ’–

okay bestie, pull up a chair πŸͺ‘ because we're talking about Plucene::Index::SegmentInfos, a lil' module living in the User Contributed Perl Documentation corner of your system. it's giving "I'm just a collection" but honestly? it's the whole vibe. ✨


🌸 NAME 🌸

Plucene::Index::SegmentInfos β€” literally just a collection of Plucene::Index::SegmentInfo objects. that's it. that's the girl. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

here's the whole flex, verbatim, no cap:

my $segmentinfos = Plucene::Index::SegmentInfos->new;

$segmentinfos->read($dir);
$segmentinfos->write($dir);

$segmentinfos->add_element(Plucene::Index::SegmentInfo $segment_info);

my Plucene::Index::SegmentInfo @segment_info
        = $segmentinfos->segments;

look at her go πŸ¦‹ new it up, read it, write it, add stuff, get the list back. iconic behavior fr fr.


✨ DESCRIPTION ✨

so basically: this is a collection of Plucene::Index::SegmentInfo objects. a little squad of segment infos. a friend group. a group chat, if you will. πŸ’œ


πŸ‘‘ METHODS πŸ‘‘

πŸ’« new

my $segmentinfos = Plucene::Index::SegmentInfos->new;

this creates a brand new, fresh-out-the-box, empty Plucene::Index::SegmentInfos object. it's a blank canvas, a clean slate, a new semester. no notes. πŸŽ€

πŸ“– read

$segmentinfos->read($dir);

this one reads the segments file from the directory you hand it. that's the $dir, bestie β€” you gotta pass it. πŸ‘‘

✍️ write

$segmentinfos->write($dir);

and this one writes the segments info file back out. symmetry! balance! we love to see it. 🌈

πŸ“ add_element

$segmentinfos->add_element(Plucene::Index::SegmentInfo $segment_info);

this adds the Plucene::Index::SegmentInfo object you pass in. drop it in the bag, it belongs here now. 🫢

πŸ” info

my Plucene::Index::SegmentInfo $info
        = $segmentinfos->info($segment_no);

you give it a segment number ($segment_no) and it hands you back the Plucene::Index::SegmentInfo object sitting at that spot. it's giving personal shopper. it's giving "I know a guy." πŸ’…

🌟 segments

my Plucene::Index::SegmentInfo @segment_info
        = $segmentinfos->segments;

and finally, this returns all the Plucene::Index::SegmentInfo objects chillin' in this segment. the whole roster. the full lineup. periodt. πŸ’–


🧚 tiny heads-up from your girl: this page is the perl v5.36.0 version, dated 2022-12-04, and it lives under User Contributed Perl Documentation. that's the whole receipt, bestie β€” go forth and collect your segments. mwah! πŸ’‹πŸ’œπŸŒΈ
πŸ“¦ where this page comes from