- All Implemented Interfaces:
- eu.stratosphere.api.common.functions.Function, eu.stratosphere.api.common.functions.GenericCollectorMap<eu.stratosphere.types.Record,eu.stratosphere.types.Record>, Serializable
- Enclosing class:
- WordCount
public static class WordCount.TokenizeLine
extends MapFunction
implements Serializable
Converts a Record containing one string in to multiple string/integer pairs.
The string is tokenized by whitespaces. For each token a new record is emitted,
where the token is the first field and an Integer(1) is the second field.
- See Also:
- Serialized Form