Browse files

revert Re #47

  • Loading branch information...
1 parent 57bcd80 commit 962900f7d2d006d537d4daf50f31c425e7ad77ae @klbostee committed Jun 8, 2009
Showing with 3 additions and 0 deletions.
  1. +3 −0 examples/join.py
View
3 examples/join.py
@@ -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

0 comments on commit 962900f

Please sign in to comment.