~i-taylor/maus/map-base

« back to all changes in this revision

Viewing changes to src/common_py/docstore/InMemoryDocumentStore.py

  • Committer: Ian Taylor
  • Date: 2013-08-12 12:52:07 UTC
  • mfrom: (663.8.7 release)
  • Revision ID: i.taylor@warwick.ac.uk-20130812125207-0ybrhlzc1p1ujbhx
Merging with V 0.6.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        """
42
42
        return self.__data_store.keys()
43
43
 
44
 
    def create_collection(self, collection):
 
44
    def create_collection(self, collection, maximum_size = 1e9):
45
45
        """ 
46
46
        Create a collection. If it already exists, this is a no-op.
47
47
        @param self Object reference.
48
48
        @param collection Collection name.
 
49
        @param maximum_size Ignored.
49
50
        """
50
51
        if (not self.__data_store.has_key(collection)):
51
52
            self.__data_store[collection] = {}