Back to index

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

List of all members.

Public Member Functions

def __init__
def group

Private Member Functions

def _group
def _normalize

Private Attributes


Detailed Description

a sorter base class used for ranking.

Definition at line 18 of file

Constructor & Destructor Documentation

def AdvancedQuery.ranking._Ranker.__init__ (   self,

Definition at line 20 of file

00021   def __init__(self, spec, cat):
00022     self._spec = spec; self._cat = cat

Here is the caller graph for this function:

Member Function Documentation

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

Reimplemented in AdvancedQuery.ranking._RankerByQueries_Max, and AdvancedQuery.ranking._RankerByQueries_Sum.

Definition at line 29 of file

00030   def _group(self, seq):
00031     raise NotImplementedError

Here is the caller graph for this function:

def AdvancedQuery.ranking._Ranker._normalize (   self,
) [private]

Definition at line 33 of file

00034   def _normalize(self, rank): return rank

Here is the caller graph for this function:

def (   self,

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:

Member Data Documentation

Definition at line 21 of file

Definition at line 21 of file

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