Back to index

moin  1.9.0~rc2
Public Member Functions | Private Attributes
MoinMoin.support.xappy.searchconnection.SearchResultIter Class Reference

List of all members.

Public Member Functions

def __init__
def next

Private Attributes

 _results
 _order
 _iter

Detailed Description

An iterator over a set of results from a search.

Definition at line 163 of file searchconnection.py.


Constructor & Destructor Documentation

Definition at line 167 of file searchconnection.py.

00167 
00168     def __init__(self, results, order):
00169         self._results = results
00170         self._order = order
00171         if self._order is None:
00172             self._iter = iter(results._mset)
00173         else:
00174             self._iter = iter(self._order)


Member Function Documentation

Definition at line 175 of file searchconnection.py.

00175 
00176     def next(self):
00177         if self._order is None:
00178             msetitem = self._iter.next()
00179         else:
00180             index = self._iter.next()
00181             msetitem = self._results._mset.get_hit(index)
00182         return SearchResult(msetitem, self._results)
00183 


Member Data Documentation

Definition at line 171 of file searchconnection.py.

Definition at line 169 of file searchconnection.py.

Definition at line 168 of file searchconnection.py.


The documentation for this class was generated from the following file: