Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Krishnan Sanjay
/
cmsc13600-public
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1d6ccca6
authored
May 21, 2020
by
Krishnan Sanjay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ooc.py
parent
9bc77187
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
hw5/ooc.py
hw5/ooc.py
View file @
1d6ccca6
...
...
@@ -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
'''
for
k
in
self
.
keys
():
yield
(
k
,
self
.
get
(
k
))
if
includeMemory
:
for
k
in
self
.
keys
():
yield
(
k
,
self
.
get
(
k
))
for
k
in
self
.
f
Keys
():
for
k
in
self
.
f
lushed
():
for
_
,
v
in
self
.
load
(
k
,
subkey
):
yield
(
k
,
v
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment