|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapred.MapReduceBase
org.apache.hadoop.hbase.mapred.TableMap
public abstract class TableMap
Scan an HBase table to sort by a specified sort column. If the column does not exist, the record is not passed to Reduce.
Constructor Summary | |
---|---|
TableMap()
constructor |
Method Summary | |
---|---|
void |
configure(JobConf job)
Default implementation that does nothing. |
static void |
initJob(String table,
String columns,
Class<? extends TableMap> mapper,
JobConf job)
Use this before submitting a TableMap job. |
abstract void |
map(HStoreKey key,
KeyedDataArrayWritable value,
TableOutputCollector output,
Reporter reporter)
Call a user defined function on a single HBase record, represented by a key and its associated record value. |
void |
map(WritableComparable key,
Writable value,
OutputCollector output,
Reporter reporter)
Input: |
Methods inherited from class org.apache.hadoop.mapred.MapReduceBase |
---|
close |
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.io.Closeable |
---|
close |
Constructor Detail |
---|
public TableMap()
Method Detail |
---|
public static void initJob(String table, String columns, Class<? extends TableMap> mapper, JobConf job)
table
- table namecolumns
- columns to scanmapper
- mapper classjob
- job configurationpublic void configure(JobConf job)
MapReduceBase
configure
in interface JobConfigurable
configure
in class MapReduceBase
job
- the configurationpublic void map(WritableComparable key, Writable value, OutputCollector output, Reporter reporter) throws IOException
map
in interface Mapper
key
- is of type HStoreKeyvalue
- is of type KeyedDataArrayWritableoutput
- output collectorreporter
- object to use for status updates
IOException
- Output:
The key is a specific column, including the input key or any value
The value is of type LabeledDatapublic abstract void map(HStoreKey key, KeyedDataArrayWritable value, TableOutputCollector output, Reporter reporter) throws IOException
key
- value
- output
- reporter
-
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |