Skip to content

Commit

Permalink
fixed loose ends in david's contribution
Browse files Browse the repository at this point in the history
  • Loading branch information
klbostee committed May 4, 2010
1 parent 0023739 commit 50ac115
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dumbo/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ def __call__(self, key, values):
yield jk, v

def secondary_blocked(self, key_body):
'''Defines the equality test between join keys.'''
return True
'''Determines if the secondary method should be blocked or not.'''
return False

def primary(self, key, values):
for value in values:
Expand All @@ -230,6 +230,6 @@ class JoinReducer(JoinCombiner):
def __init__(self):
self._key = None

def key_check(self, body):
return self._key == body
def secondary_blocked(self, body):
return self._key != body

0 comments on commit 50ac115

Please sign in to comment.