Fix Perl bindings doc typos
[xapian.git] / xapian-bindings / perl / Xapian / PostingIterator.pm
blob4331e09044687476af2a771049d91d013f527143
1 package Xapian::PostingIterator;
3 =head1 NAME
5 Xapian::PostingIterator - Iterate over the list of documents indexed
6 by a term.
8 =head1 DESCRIPTION
10 This iterator represents a stream of documents indexed by a term. It overloads
11 C<++> for advancing the iterator, or you can explicitly call the C<inc> method.
12 This class also overloads C<eq>, C<ne>, C<==>, C<!=>, and C<"">
13 (stringification).
15 =head1 METHODS
17 =over 4
19 =item new
21 Constructor. Defaults to an uninitialized iterator.
23 =item clone
25 =item inc
27 Advance the iterator by one. (Called implicitly by C<++> overloading).
29 =item skip_to <tname>
31 Skip the iterator to term tname, or the first term after tname if tname
32 isn't in the list of terms being iterated.
34 =item get_docid
36 Get the unique id of this document.
38 =item get_wdf
40 Return the wdf of the current term (if meaningful).
42 =item positionlist_begin
44 Return L<Xapian::PositionIterator> pointing to start of positionlist for current term.
46 =item positionlist_end
48 Return L<Xapian::PositionIterator> pointing to end of positionlist for current term.
50 =item get_doclength
52 Get the length of the document at the current position in the postlist.
54 This information may be stored in the postlist, in which case this lookup
55 should be extremely fast (indeed, not require further disk access). If the
56 information is not present in the postlist, it will be retrieved from the
57 database, at a greater performance cost.
59 =item equal <term>
61 Checks if a term is the same as this term. Also overloaded to the C<eq>
62 and C<==> operators.
64 =item nequal <term>
66 Checks if a term is different from this term. Also overloaded to the C<ne>
67 and C<!=> operators.
69 =item get_description
71 Return a description of this object.
73 =back
75 =head1 SEE ALSO
77 L<Xapian>,
78 L<Xapian::Database>
80 =cut