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
[legend]
Collaboration diagram for AdvancedQuery.ranking._Ranker:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def group

Private Member Functions

def _group
def _normalize

Private Attributes

 _spec
 _cat

Detailed Description

a sorter base class used for ranking.

Definition at line 18 of file ranking.py.


Constructor & Destructor Documentation

def AdvancedQuery.ranking._Ranker.__init__ (   self,
  spec,
  cat 
)

Definition at line 20 of file ranking.py.

00020 
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,
  seq 
) [private]

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

Definition at line 29 of file ranking.py.

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

Here is the caller graph for this function:

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

Definition at line 33 of file ranking.py.

00033 
00034   def _normalize(self, rank): return rank
00035 

Here is the caller graph for this function:

def AdvancedQuery.ranking._Ranker.group (   self,
  seq 
)

Definition at line 23 of file ranking.py.

00023 
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 ranking.py.

Definition at line 21 of file ranking.py.


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