Logo Search packages:      
Sourcecode: zope-managableindex version File versions  Download package

def ManagableIndex::ManagableIndex::ManagableIndex::_insert (   self,
  term,
  docId,
  _isInstance = isinstance,
  _IntType = IntType 
) [private]

index *docId* under *term*.

Definition at line 463 of file ManagableIndex.py.

00463                                                                           :
    '''index *docId* under *term*.'''
    index= self._index
    dl= index.get(term)
    if dl is None:
      index[term]= docId; self.__len__.change(1)
      if self.ReverseOrder: self._reverseOrder.insert(reverseOrder(term))
      return
    if _isInstance(dl,_IntType): dl= index[term]= IITreeSet((dl,))
    dl.insert(docId)

  def _remove(self,term,docId, _isInstance= isinstance, _IntType= IntType):


Generated by  Doxygen 1.6.0   Back to index