Xapian:...Iterator(3)

🌸 NAME 🌸

Search::Xapian::ValueIterator β€” iterate over value slots in a document. That's the whole assignment, bestie. Slay. πŸ’…

This is the Xapian:...Iterator(3) page from the User Contributed Perl Documentation, and it's giving tiny but iconic Perl object. πŸ¦‹

✨ DESCRIPTION ✨

Okay so this object represents a stream of document values. It overloads ++ for advancing the iterator, or you can explicitly call the inc method. No cap. πŸ’–

This class also overloads eq, ne, ==, !=, and "" (stringification). Yes bestie, that "" is the stringification operator β€” it's in the mix too. πŸŽ€

πŸ’… METHODS πŸ’…

  • new β€” the constructor. Defaults to a uninitialized iterator. 🫢
  • clone β€” it's a method, and the page lists it right here. No extra description on this one, so I'm not gonna make one up. πŸ™ˆ
  • inc β€” advance the iterator by one. (Called implicitly by ++ overloading.) ⭐
  • get_valueno β€” return the number of the value slot at the current position. πŸ”’
  • get_value β€” return the string in the value slot at current position. Also overloaded as the "" operator. πŸ“
  • get_description β€” returns a string describing this object. πŸ“
  • equal <valueiterator> β€” checks if a valueiterator is the same as this valueiterator. Also overloaded as the eq and != operators. (yep, that's what the page says β€” keeping it exactly.) πŸ’€
  • nequal <valueiterator> β€” checks if a valueiterator is different from this valueiterator. Also overloaded as the ne and != operators. πŸ”₯

🌈 SEE ALSO 🌈

  • Search::Xapian
  • Search::Xapian::Document

Those are your besties to go check out next. πŸ‘‘


okay that's the whole page, bestie β€” sign-off time: this is perl v5.42.0, dated 2022-02-28, and the page is Xapian:...Iterator(3). mwah πŸ’–βœ¨πŸŽ€ periodt.

πŸ“¦ where this page comes from