Plucen...sReader(3pm)
π Plucene::Index::TermInfosReader(3pm) π
okay so bestie, welcome to the manual page for Plucene::Index::TermInfosReader β part of the User Contributed Perl Documentation, and yes she's a Perl module, and yes she's iconic for it. π
β¨ NAME β¨
Plucene::Index::TermInfosReader β the girl who reads the term infos file. that's it. that's her whole job. π¦
πΈ SYNOPSIS πΈ
here's the vibe, copy-paste ready, no cap:
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);
look at her. she's doing so much. π
π«Ά DESCRIPTION π«Ά
so literally, this reads a term infos file. that's the whole description. short, sweet, main character energy. π
π METHODS π
π new
my $reader = Plucene::Index::TermInfosReader->new(
$dir_name, $segment, $fis);
this will create a brand new Plucene::Index::TermInfosReader object for you, using the directory name, the segment name, and the field infos you passed in. three little arguments and boom, she exists. β¨
π§ get
my Plucene::Index::TermInfo $term_info =
$reader->get(Plucene::Index::Term $term);
she hands you back a Plucene::Index::TermInfo for the term you gave her. that's the whole method. slay.
π get_int / get_position
these are never called. not once. not ever. they're just sitting there, existing, lowkey decorative. π
β terms
my Plucene::Index::SegmentTermEnum $enum =
$reader->terms(Plucene::Index::Term $term);
this will return the Plucene::Index::SegmentTermEnum for the Plucene::Index::Term you passed in. give her a term, she gives you an enum. the way that works?? obsessed. π
fr fr, that's the whole page β every option, every method, every code block, untouched. no details were harmed in the making of this rewrite. π
sign-off, periodt: this one's from perl v5.36.0, dated 2022-12-04, and it lives in the User Contributed Perl Documentation. bye bestie, go read some term infos π
π¦β¨
π¦ 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