[omega] Compute date spans in days
[xapian.git] / xapian-bindings / perl / Xapian / TermIterator.pm
blob861d4ad12fa0a7f90c065afe26f93d14c04e2ca8
1 package Xapian::TermIterator;
3 =head1 NAME
5 Xapian::TermIterator - Iterate over a list of terms.
7 =head1 DESCRIPTION
9 This object represents a stream of terms. It overloads C<++> for
10 advancing the iterator, or you can explicitly call the C<inc> method.
11 This class also overloads C<eq>, C<ne>, C<==>, and C<!=>.
13 =head2 Compatibility with Search::Xapian
15 Search::Xapian overloads <""> (stringification) on this class to call
16 the C<get_termname> method. Call C<get_termname> directly instead.
18 =head1 METHODS
20 =over 4
22 =item new
24 Constructor. Defaults to a uninitialized iterator.
26 =item clone
28 =item inc
30 Advance the iterator by one. (Called implicitly by C<++> overloading)
32 =item skip_to <tname>
34 Skip the iterator to term tname, or the first term after tname if tname
35 isn't in the list of terms being iterated.
37 =item get_termname
39 Get the name of the current term.
41 =item get_wdf
43 Return the wdf of the current term (if meaningful).
45 =item get_termfreq
47 Return the term frequency of the current term (if meaningful).
49 =item positionlist_begin
51 Return L<Xapian::PositionIterator> pointing to start of positionlist for current term.
53 =item positionlist_end
55 Return L<Xapian::PositionIterator> pointing to end of positionlist for current term.
57 =item get_description
59 Returns a string describing this object.
61 =item equal <termiterator>
63 Checks if a termiterator is the same as this termiterator. Also overloaded as
64 the C<eq> and C<==> operators.
66 =item nequal <termiterator>
68 Checks if a termiterator is different from this termiterator. Also overloaded
69 as the C<ne> and C<!=> operators.
71 =back
73 =head1 SEE ALSO
75 L<Xapian>,
76 L<Xapian::Document>
78 =cut