public class DateTwitterPreprocessingMapper 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.Text>
AbstractTwitterPreprocessingToolOptions
from the
HadoopTwitterPreprocessingTool.ARGS_KEY
variable (once per in memory
mapper) and uses these to preprocess tweets.Constructor and Description |
---|
DateTwitterPreprocessingMapper() |
Modifier and Type | Method and Description |
---|---|
protected static 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 DateTwitterPreprocessingMapper()
protected static 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.Text>
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.Text>
IOException
InterruptedException