public abstract class DataJoinMapperBase extends JobBase
| Modifier and Type | Field and Description |
|---|---|
protected String |
inputFile |
protected Text |
inputTag |
protected JobConf |
job |
protected Reporter |
reporter |
| Constructor and Description |
|---|
DataJoinMapperBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(JobConf job)
Initializes a new instance from a
JobConf. |
protected abstract Text |
generateGroupKey(TaggedMapOutput aRecord)
Generate a map output key.
|
protected abstract Text |
generateInputTag(String inputFile)
Determine the source tag based on the input file name.
|
protected abstract TaggedMapOutput |
generateTaggedMapOutput(Object value)
Generate a tagged map output value.
|
void |
map(Object key,
Object value,
OutputCollector output,
Reporter reporter) |
void |
reduce(Object arg0,
Iterator arg1,
OutputCollector arg2,
Reporter arg3) |
addDoubleValue, addLongValue, getDoubleValue, getLongValue, getReport, report, setDoubleValue, setLongValueprotected String inputFile
protected JobConf job
protected Text inputTag
protected Reporter reporter
public void configure(JobConf job)
JobBaseJobConf.configure in interface JobConfigurableconfigure in class JobBasejob - the configurationprotected abstract Text generateInputTag(String inputFile)
inputFile - protected abstract TaggedMapOutput generateTaggedMapOutput(Object value)
value - protected abstract Text generateGroupKey(TaggedMapOutput aRecord)
aRecord - public void map(Object key, Object value, OutputCollector output, Reporter reporter) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic void reduce(Object arg0, Iterator arg1, OutputCollector arg2, Reporter arg3) throws IOException
IOExceptionCopyright © 2018 CERN. All Rights Reserved.