org.apache.hadoop.hbase.mapred
Class IdentityTableMap
java.lang.Object
org.apache.hadoop.mapred.MapReduceBase
org.apache.hadoop.hbase.mapred.IdentityTableMap
- All Implemented Interfaces:
- Closeable, TableMap<ImmutableBytesWritable,RowResult>, org.apache.hadoop.mapred.JobConfigurable, org.apache.hadoop.mapred.Mapper<ImmutableBytesWritable,RowResult,ImmutableBytesWritable,RowResult>
public class IdentityTableMap
- extends org.apache.hadoop.mapred.MapReduceBase
- implements TableMap<ImmutableBytesWritable,RowResult>
Pass the given key and record as-is to reduce
Methods inherited from class org.apache.hadoop.mapred.MapReduceBase |
close, configure |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.mapred.JobConfigurable |
configure |
IdentityTableMap
public IdentityTableMap()
- constructor
initJob
public static void initJob(String table,
String columns,
Class<? extends TableMap> mapper,
org.apache.hadoop.mapred.JobConf job)
- Use this before submitting a TableMap job. It will
appropriately set up the JobConf.
- Parameters:
table
- table namecolumns
- columns to scanmapper
- mapper classjob
- job configuration
map
public void map(ImmutableBytesWritable key,
RowResult value,
org.apache.hadoop.mapred.OutputCollector<ImmutableBytesWritable,RowResult> output,
org.apache.hadoop.mapred.Reporter reporter)
throws IOException
- Pass the key, value to reduce
- Specified by:
map
in interface org.apache.hadoop.mapred.Mapper<ImmutableBytesWritable,RowResult,ImmutableBytesWritable,RowResult>
- Throws:
IOException
Copyright © 2008 The Apache Software Foundation