Package amplee :: Package indexer :: Class AtomIDIndexer
[hide private]
[frames] | no frames]

Class AtomIDIndexer

source code

object --+    
         |    
 BaseIndex --+
             |
            AtomIDIndexer

Instance Methods [hide private]
 
__init__(self, name, container=None)
Indexing the atom identifier.
source code
 
update(self, member)
Updates the index based on the id element of the provided member.
source code
set
lookup(self, entry_id)
Looks up for a member indexed with that identifier.
source code

Inherited from BaseIndex: iiterindex, iload, iterindex, keys, load, store

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, container=None)
(Constructor)

source code 
Indexing the atom identifier.
Parameters:
  • name (string) - an internal identifier used to reference the indexer.
  • container (object) - instance of a class implementing the dictionnary interface.
Overrides: BaseIndex.__init__

update(self, member)

source code 
Updates the index based on the id element of the provided member.
Parameters:
Overrides: BaseIndex.update

lookup(self, entry_id)

source code 
Looks up for a member indexed with that identifier.
Parameters:
  • entry_id (string) - identifier to look for
Returns: set
matching indexed member identifiers.