@InterfaceAudience.Public @InterfaceStability.Stable public class IdentityTableMap extends org.apache.hadoop.mapred.MapReduceBase implements TableMap<ImmutableBytesWritable,Result>
| 构造器和说明 |
|---|
IdentityTableMap()
constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
initJob(String table,
String columns,
Class<? extends TableMap> mapper,
org.apache.hadoop.mapred.JobConf job)
Use this before submitting a TableMap job.
|
void |
map(ImmutableBytesWritable key,
Result value,
org.apache.hadoop.mapred.OutputCollector<ImmutableBytesWritable,Result> output,
org.apache.hadoop.mapred.Reporter reporter)
Pass the key, value to reduce
|
public static void initJob(String table, String columns, Class<? extends TableMap> mapper, org.apache.hadoop.mapred.JobConf job)
table - table namecolumns - columns to scanmapper - mapper classjob - job configurationpublic void map(ImmutableBytesWritable key, Result value, org.apache.hadoop.mapred.OutputCollector<ImmutableBytesWritable,Result> output, org.apache.hadoop.mapred.Reporter reporter) throws IOException
map 在接口中 org.apache.hadoop.mapred.Mapper<ImmutableBytesWritable,Result,ImmutableBytesWritable,Result>key - value - output - reporter - IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.