Package xappy :: Module indexerconnection :: Class PrefixedTermIter
[frames] | no frames]

Class PrefixedTermIter

source code

object --+
         |
        PrefixedTermIter

Iterate through all the terms with a given prefix.

Instance Methods
 
__init__(self, prefix, termiter)
Initialise the prefixed term iterator.
source code
 
__iter__(self) source code
 
next(self)
Get the next term with the specified prefix.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Method Details

__init__(self, prefix, termiter)
(Constructor)

source code 

Initialise the prefixed term iterator.

  • prefix is the prefix to return terms for.
  • termiter is a xapian TermIterator, which should be at its start.
Overrides: object.__init__