public static class CountTweetsInTimeperiod.Map extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable>
Modifier and Type | Field and Description |
---|---|
static org.apache.hadoop.io.LongWritable |
END_TIME
The time used to signify the end, used to count total numbers of
times a given word appears
|
static org.apache.hadoop.io.LongWritable |
TOTAL_TIME
A total of the number of tweets, must be ignored!
|
Constructor and Description |
---|
Map()
Mapper don't care, mapper don't give a fuck
|
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup(org.apache.hadoop.mapreduce.Mapper.Context context) |
protected void |
loadOptions(org.apache.hadoop.mapreduce.Mapper.Context context) |
protected void |
map(org.apache.hadoop.io.LongWritable key,
org.apache.hadoop.io.Text value,
org.apache.hadoop.mapreduce.Mapper.Context context) |
protected void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context) |
public static final org.apache.hadoop.io.LongWritable END_TIME
public static final org.apache.hadoop.io.LongWritable TOTAL_TIME
public Map()
protected void loadOptions(org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException
IOException
protected void setup(org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
setup
in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable>
IOException
InterruptedException
protected void map(org.apache.hadoop.io.LongWritable key, org.apache.hadoop.io.Text value, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
map
in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable>
IOException
InterruptedException
protected void cleanup(org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
cleanup
in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable>
IOException
InterruptedException