Plucen...tInfos(3pm)
π 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 theperl v5.36.0version, dated2022-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
- debian bookworm: libplucene-perl 1.25-5
- debian trixie: libplucene-perl 1.25-5
- ubuntu noble: libplucene-perl 1.25-5
- ubuntu resolute: libplucene-perl 1.25-5
- ubuntu stonking: libplucene-perl 1.25-5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms