~nchohan/+junk/mytools

« back to all changes in this revision

Viewing changes to sample_apps/httpmr/httpmr/mappers.py

  • Committer: root
  • Date: 2010-11-03 07:43:57 UTC
  • Revision ID: root@appscale-image0-20101103074357-xea7ja3sor3x93oc
init

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from httmr import base
 
2
 
 
3
class IdentityMapper(base.Mapper):
 
4
  
 
5
  def Map(self, key, value):
 
6
    yield key, value
 
7
 
 
8
 
 
9
class CountMapper(base.Mapper):
 
10
  
 
11
  def Map(self, key, value):
 
12
    yield key, "1"
 
 
b'\\ No newline at end of file'