// Copyright (c) 2008 Michael Miceli and Christopher Miceli // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef MR_PARSE_MAP_LINE_HPP #define MR_PARSE_MAP_LINE_HPP #include #include #include #include namespace MapReduce { std::string getKey(std::string line) { std::string::size_type pos = line.find(' '); return line.substr(0,pos); } void parseMapLine(std::vector &retValues, std::string const &line) { for(std::string::size_type x=0;x