@InterfaceAudience.Public public class IdentityTableMap extends org.apache.hadoop.mapred.MapReduceBase implements TableMap<ImmutableBytesWritable,Result>
Constructor and Description |
---|
IdentityTableMap()
constructor
|
Modifier and Type | Method and Description |
---|---|
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 nnnnn
|
public IdentityTableMap()
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
in interface org.apache.hadoop.mapred.Mapper<ImmutableBytesWritable,Result,ImmutableBytesWritable,Result>
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.