Commit 1d6ccca6 by Krishnan Sanjay

Update ooc.py

parent 9bc77187
Showing with 4 additions and 2 deletions
......@@ -114,14 +114,15 @@ class MemoryLimitedHashMap(object):
line = f.readline()
def loadAll(self, subkey=""):
def loadAll(self, subkey="", includeMemory=False):
'''
Streams all of the data from all keys
'''
if includeMemory:
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):
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