Package ml.shifu.guagua.mapreduce
Class GuaguaRecordWriter
- java.lang.Object
-
- org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
-
- ml.shifu.guagua.mapreduce.GuaguaRecordWriter
-
public class GuaguaRecordWriter extends org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>We don't useGuaguaRecordWriterbut hadoop MapReduce needs it.
-
-
Constructor Summary
Constructors Constructor Description GuaguaRecordWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(org.apache.hadoop.mapreduce.TaskAttemptContext context)voidwrite(org.apache.hadoop.io.Text key, org.apache.hadoop.io.Text value)
-
-
-
Method Detail
-
close
public void close(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException- Specified by:
closein classorg.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>- Throws:
IOExceptionInterruptedException
-
write
public void write(org.apache.hadoop.io.Text key, org.apache.hadoop.io.Text value) throws IOException, InterruptedException- Specified by:
writein classorg.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>- Throws:
IOExceptionInterruptedException
-
-