Class MapperWrapper<KeyIn,ValueIn,KeyOut,ValueOut>
java.lang.Object
org.approvaltests.hadoop.version2.MapperWrapper<KeyIn,ValueIn,KeyOut,ValueOut>
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.io.Closeable,org.apache.hadoop.mapred.JobConfigurable,org.apache.hadoop.mapred.Mapper<KeyIn,ValueIn,KeyOut,ValueOut>,Transform<KeyIn,ValueIn,KeyOut,ValueOut>,SmartMapper<KeyIn,ValueIn,KeyOut,ValueOut>
public class MapperWrapper<KeyIn,ValueIn,KeyOut,ValueOut> extends Object implements SmartMapper<KeyIn,ValueIn,KeyOut,ValueOut>
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidclose()voidconfigure(org.apache.hadoop.mapred.JobConf arg0)Class<KeyIn>getKeyInType()Class<KeyOut>getKeyOutType()Class<ValueIn>getValueInType()Class<ValueOut>getValueOutType()voidmap(KeyIn arg0, ValueIn arg1, org.apache.hadoop.mapred.OutputCollector<KeyOut,ValueOut> arg2, org.apache.hadoop.mapred.Reporter arg3)
-
Constructor Details
-
MapperWrapper
-
-
Method Details
-
getKeyInType
-
getValueInType
-
getKeyOutType
-
getValueOutType
-
map
public void map(KeyIn arg0, ValueIn arg1, org.apache.hadoop.mapred.OutputCollector<KeyOut,ValueOut> arg2, org.apache.hadoop.mapred.Reporter arg3) throws IOException- Specified by:
mapin interfaceorg.apache.hadoop.mapred.Mapper<KeyIn,ValueIn,KeyOut,ValueOut>- Throws:
IOException
-
configure
public void configure(org.apache.hadoop.mapred.JobConf arg0)- Specified by:
configurein interfaceorg.apache.hadoop.mapred.JobConfigurable
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-