Back to index

plone3  3.1.7
Public Member Functions | Private Member Functions
AdvancedQuery.ranking._RankerByQueries_Max Class Reference
Inheritance diagram for AdvancedQuery.ranking._RankerByQueries_Max:
Inheritance graph
Collaboration diagram for AdvancedQuery.ranking._RankerByQueries_Max:
Collaboration graph

List of all members.

Public Member Functions

def group

Private Member Functions

def _group

Detailed Description

a sorter corresponding to 'RankByQueries_Max'.

Definition at line 117 of file

Member Function Documentation

def AdvancedQuery.ranking._RankerByQueries_Max._group (   self,
) [private]

Reimplemented from AdvancedQuery.ranking._Ranker.

Definition at line 119 of file

00120   def _group(self, seq):
00121     spec = self._spec; cat = self._cat
00122     vqs = spec._getValueQuerySequence()
00123     for i in xrange(len(vqs)-1,-1,-1):
00124       v,q = vqs[i]
00125       q = And(LiteralResultSet(seq), q)
00126       qr = _eval(q, cat)
00127       if qr: yield v, qr; seq = difference(seq, qr)
00128       if not seq: return
00129     yield 0, seq

Here is the call graph for this function:

def (   self,
) [inherited]

Definition at line 23 of file

00024   def group(self, seq):
00025     normalize = self._normalize
00026     for rank, subseq in self._group(seq):
00027       yield normalize(rank), subseq

Here is the call graph for this function:

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