|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.conf.Configured
org.apache.avro.mapred.AvroMapper<IN,OUT>
public class AvroMapper<IN,OUT>
A mapper for Avro data.
Applications subclass this class and pass their subclass to AvroJob.setMapperClass(JobConf, Class), overriding map(Object, AvroCollector, Reporter).
| Constructor Summary | |
|---|---|
AvroMapper()
|
|
| Method Summary | |
|---|---|
void |
close()
Subclasses can override this as desired. |
void |
configure(JobConf jobConf)
Subclasses can override this as desired. |
void |
map(IN datum,
AvroCollector<OUT> collector,
Reporter reporter)
Called with each map input datum. |
| Methods inherited from class org.apache.hadoop.conf.Configured |
|---|
getConf, setConf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AvroMapper()
| Method Detail |
|---|
public void map(IN datum,
AvroCollector<OUT> collector,
Reporter reporter)
throws IOException
IOException
public void close()
throws IOException
close in interface CloseableIOExceptionpublic void configure(JobConf jobConf)
configure in interface JobConfigurable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||