Package grassyknoll :: Package collection :: Module ThreadCollection :: Class ThreadCollection
[hide private]

Class ThreadCollection

source code


Instance Methods [hide private]
 
__init__(self, writer_factory, reader_factory, name=None, writer_pool_factory=ThreadPool, reader_pool_factory=ThreadPool)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
start(self) source code
CollectionIds
create(self, docs)
XXX this should prolly return None
source code
CollectionIds
delete(self, ids)
delete several CollectionDocuments by id
source code
CollectionIds
list(self)
Returns: the ids in the collection
source code
CollectionResultSet
retrieve(self, ids, fields=None)
retrive several CollectionResults by id
source code
 
__getattr__(self, name) source code
 
close(self)
free resources associated with this collection
source code

Inherited from Collection.Collection: __len__, cleanUp

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

Class Methods [hide private]

Inherited from lib.meta.FactoryMixin: factory

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, writer_factory, reader_factory, name=None, writer_pool_factory=ThreadPool, reader_pool_factory=ThreadPool)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

create(self, docs)

source code 
XXX this should prolly return None
Returns: CollectionIds
the created ids
Overrides: Collection.Collection.create
(inherited documentation)

delete(self, ids)

source code 

delete several CollectionDocuments by id

XXX this should prolly return None
Returns: CollectionIds
the deleted ids
Overrides: Collection.Collection.delete
(inherited documentation)

list(self)

source code 
Returns: CollectionIds
the ids in the collection
Overrides: Collection.Collection.list
(inherited documentation)

retrieve(self, ids, fields=None)

source code 
retrive several CollectionResults by id
Returns: CollectionResultSet
the results
Overrides: Collection.Collection.retrieve
(inherited documentation)

close(self)

source code 
free resources associated with this collection
Overrides: Collection.Collection.close
(inherited documentation)