public abstract class WorkloadMapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
extends org.apache.hadoop.mapreduce.Mapper<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
VirtualInputFormat as its
InputFormat. Subclasses requiring a reducer or expecting a different
InputFormat should override the configureJob(Job) method.| Constructor and Description |
|---|
WorkloadMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureJob(org.apache.hadoop.mapreduce.Job job)
Setup input and output formats and optional reducer.
|
abstract List<String> |
getConfigDescriptions()
Get a list of the description of each configuration that this mapper
accepts.
|
abstract String |
getDescription()
Get the description of the behavior of this mapper.
|
abstract boolean |
verifyConfigurations(org.apache.hadoop.conf.Configuration conf)
Verify that the provided configuration contains all configurations required
by this mapper.
|
public abstract String getDescription()
public abstract List<String> getConfigDescriptions()
public abstract boolean verifyConfigurations(org.apache.hadoop.conf.Configuration conf)
conf - configuration.public void configureJob(org.apache.hadoop.mapreduce.Job job)
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.