Skip to content

Commit

Permalink
revert Re #47
Browse files Browse the repository at this point in the history
  • Loading branch information
klbostee committed Jun 8, 2009
1 parent 57bcd80 commit 962900f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/join.py
Expand Up @@ -10,10 +10,13 @@ def mapper1(key, value):
yield value.split("\t", 1)

class Reducer1(JoinReducer):
def __init__(self):
self.hostname = "unknown"
def primary(self, key, values):
self.hostname = values.next()
def secondary(self, key, values):
key = self.hostname
self.hostname = "unknown"
for value in values:
yield key, value

Expand Down

0 comments on commit 962900f

Please sign in to comment.