public class CSVToArffHeaderHadoopMapper
extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CSV_TO_ARFF_HEADER_MAP_TASK_OPTIONS
The key in the Configuration that the options for this task are associated
with
|
| Constructor and Description |
|---|
CSVToArffHeaderHadoopMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(org.apache.hadoop.mapreduce.Mapper.Context context) |
void |
map(org.apache.hadoop.io.LongWritable key,
org.apache.hadoop.io.Text value,
org.apache.hadoop.mapreduce.Mapper.Context context) |
static java.util.List<java.lang.String> |
readNames(java.io.BufferedReader br)
Read attribute names (one per line) from the supplied Reader
|
void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context) |
public static java.lang.String CSV_TO_ARFF_HEADER_MAP_TASK_OPTIONS
public static java.util.List<java.lang.String> readNames(java.io.BufferedReader br)
throws java.io.IOException
br - the BufferedReader to read fromjava.io.IOException - if a problem occurspublic void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
throws java.io.IOException
setup in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable>java.io.IOExceptionpublic void map(org.apache.hadoop.io.LongWritable key,
org.apache.hadoop.io.Text value,
org.apache.hadoop.mapreduce.Mapper.Context context)
throws java.io.IOException
map in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable>java.io.IOExceptionpublic void cleanup(org.apache.hadoop.mapreduce.Mapper.Context context)
throws java.io.IOException,
java.lang.InterruptedException
cleanup in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable>java.io.IOExceptionjava.lang.InterruptedException