KEYIN
- input key typeVALUEIN
- input value typeKEYOUT
- output key typeVALUEOUT
- output value typepublic abstract class MapperWithRuntimeResource<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
extends org.apache.hadoop.mapreduce.Mapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
RuntimeResource
s.Constructor and Description |
---|
MapperWithRuntimeResource() |
Modifier and Type | Method and Description |
---|---|
void |
run(org.apache.hadoop.mapreduce.Mapper.Context context) |
protected void |
runInternal(org.apache.hadoop.mapreduce.Mapper.Context context)
Invokes
Mapper#run(Context) internally. |
protected void runInternal(org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
Mapper#run(Context)
internally.
Clients can override this method and implement customized run
method.context
- current contextIOException
- if task is failed by I/O errorInterruptedException
- if task execution is interruptedpublic final void run(org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
run
in class org.apache.hadoop.mapreduce.Mapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
IOException
InterruptedException
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.