TokenCountMapper (Apache Hadoop Main 3.4.1 API) (original) (raw)


@InterfaceAudience.Public
@InterfaceStability.Stable
public class TokenCountMapper
extends MapReduceBase
implements Mapper<K,Text,Text,LongWritable>
A Mapper that maps text values into <token,freq> pairs. UsesStringTokenizer to break text into tokens.