T
- the input/output data model typepublic abstract class PreparatorMapper<T> extends MapperWithRuntimeResource<Object,T,Object,T>
Modifier and Type | Field and Description |
---|---|
static String |
NAME_GET_OUTPUT_NAME
The method name of
getOutputName() . |
Constructor and Description |
---|
PreparatorMapper() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup(org.apache.hadoop.mapreduce.Mapper.Context context) |
abstract String |
getOutputName()
Returns the output name.
|
protected void |
map(Object key,
T value,
org.apache.hadoop.mapreduce.Mapper.Context context) |
protected void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context) |
run, runInternal
public static final String NAME_GET_OUTPUT_NAME
getOutputName()
.protected void setup(org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
setup
in class org.apache.hadoop.mapreduce.Mapper<Object,T,Object,T>
IOException
InterruptedException
public abstract String getOutputName()
protected void cleanup(org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
cleanup
in class org.apache.hadoop.mapreduce.Mapper<Object,T,Object,T>
IOException
InterruptedException
protected void map(Object key, T value, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
map
in class org.apache.hadoop.mapreduce.Mapper<Object,T,Object,T>
IOException
InterruptedException
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.