text: from hadooplib.mapper import MapperBase
  
  class NameMapper(MapperBase):
      """
      map a name to its first character
  
      e.g. Adam -> (Adam, A)
      """
  
      def map(self, key, value):
          """
          map a name to its first character
          
          @param key: None
          @param value: name
          """
          self.outputcollector.collect(value.strip(), value[0])
  
  if __name__ == "__main__":
      NameMapper().call_map()
  