public class TimeWordMapper extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>
WordDFIDF
entries, outputs the word as value and the earliest time as keyConstructor and Description |
---|
TimeWordMapper() |
Modifier and Type | Method and Description |
---|---|
protected void |
map(org.apache.hadoop.io.Text key,
org.apache.hadoop.io.BytesWritable value,
org.apache.hadoop.mapreduce.Mapper.Context context) |
public TimeWordMapper()
protected void map(org.apache.hadoop.io.Text key, org.apache.hadoop.io.BytesWritable value, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
map
in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>
IOException
InterruptedException