Commit 1d6ccca6 by Krishnan Sanjay

Update ooc.py

parent 9bc77187
Showing with 6 additions and 4 deletions
...@@ -114,14 +114,15 @@ class MemoryLimitedHashMap(object): ...@@ -114,14 +114,15 @@ class MemoryLimitedHashMap(object):
line = f.readline() line = f.readline()
def loadAll(self, subkey=""): def loadAll(self, subkey="", includeMemory=False):
''' '''
Streams all of the data from all keys Streams all of the data from all keys
''' '''
for k in self.keys(): if includeMemory:
yield (k, self.get(k)) for k in self.keys():
yield (k, self.get(k))
for k in self.fKeys(): for k in self.flushed():
for _,v in self.load(k, subkey): for _,v in self.load(k, subkey):
yield (k,v) yield (k,v)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment