|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdatafu.hourglass.mapreduce.ObjectProcessor
datafu.hourglass.mapreduce.ObjectMapper
datafu.hourglass.mapreduce.PartitioningMapper
public class PartitioningMapper
The mapper used by AbstractPartitionPreservingIncrementalJob and its derived classes.
An implementation of Mapper is used for the
map operation, which produces key and intermediate value pairs from the input.
The input to the mapper is assumed to be partitioned by day.
Each key produced by Mapper is tagged with the time for the partition
that the input came from. This enables the combiner and reducer to preserve the partitions.
| Constructor Summary | |
|---|---|
PartitioningMapper()
|
|
| Method Summary | |
|---|---|
Mapper<org.apache.avro.generic.GenericRecord,org.apache.avro.generic.GenericRecord,org.apache.avro.generic.GenericRecord> |
getMapper()
Gets the mapper. |
PartitionPreservingSchemas |
getSchemas()
Gets the Avro schemas. |
void |
map(java.lang.Object inputObj,
org.apache.hadoop.mapreduce.MapContext<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object> context)
|
void |
setContext(org.apache.hadoop.mapreduce.TaskInputOutputContext<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object> context)
|
void |
setMapper(Mapper<org.apache.avro.generic.GenericRecord,org.apache.avro.generic.GenericRecord,org.apache.avro.generic.GenericRecord> mapper)
Sets the mapper. |
void |
setSchemas(PartitionPreservingSchemas schemas)
Sets the Avro schemas. |
| Methods inherited from class datafu.hourglass.mapreduce.ObjectProcessor |
|---|
close, getContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PartitioningMapper()
| Method Detail |
|---|
public void map(java.lang.Object inputObj,
org.apache.hadoop.mapreduce.MapContext<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object> context)
throws java.io.IOException,
java.lang.InterruptedException
map in class ObjectMapperjava.io.IOException
java.lang.InterruptedExceptionpublic Mapper<org.apache.avro.generic.GenericRecord,org.apache.avro.generic.GenericRecord,org.apache.avro.generic.GenericRecord> getMapper()
public void setMapper(Mapper<org.apache.avro.generic.GenericRecord,org.apache.avro.generic.GenericRecord,org.apache.avro.generic.GenericRecord> mapper)
mapper - public void setSchemas(PartitionPreservingSchemas schemas)
schemas - public PartitionPreservingSchemas getSchemas()
public void setContext(org.apache.hadoop.mapreduce.TaskInputOutputContext<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object> context)
setContext in class ObjectProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||