org.apache.hadoop.hbase.mapred
Class TableMapReduceUtil

java.lang.Object
  extended by org.apache.hadoop.hbase.mapred.TableMapReduceUtil

public class TableMapReduceUtil
extends Object

Utility for TableMap and TableReduce


Constructor Summary
TableMapReduceUtil()
           
 
Method Summary
static void initTableMapJob(String table, String columns, Class<? extends TableMap> mapper, Class<? extends org.apache.hadoop.io.WritableComparable> outputKeyClass, Class<? extends org.apache.hadoop.io.Writable> outputValueClass, org.apache.hadoop.mapred.JobConf job)
          Use this before submitting a TableMap job.
static void initTableReduceJob(String table, Class<? extends TableReduce> reducer, org.apache.hadoop.mapred.JobConf job)
          Use this before submitting a TableReduce job.
static void initTableReduceJob(String table, Class<? extends TableReduce> reducer, org.apache.hadoop.mapred.JobConf job, Class partitioner)
          Use this before submitting a TableReduce job.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableMapReduceUtil

public TableMapReduceUtil()
Method Detail

initTableMapJob

public static void initTableMapJob(String table,
                                   String columns,
                                   Class<? extends TableMap> mapper,
                                   Class<? extends org.apache.hadoop.io.WritableComparable> outputKeyClass,
                                   Class<? extends org.apache.hadoop.io.Writable> outputValueClass,
                                   org.apache.hadoop.mapred.JobConf job)
Use this before submitting a TableMap job. It will appropriately set up the JobConf.

Parameters:
table - table name
columns - columns to scan
mapper - mapper class
outputKeyClass -
outputValueClass -
job - job configuration

initTableReduceJob

public static void initTableReduceJob(String table,
                                      Class<? extends TableReduce> reducer,
                                      org.apache.hadoop.mapred.JobConf job)
                               throws IOException
Use this before submitting a TableReduce job. It will appropriately set up the JobConf.

Parameters:
table -
reducer -
job -
Throws:
IOException

initTableReduceJob

public static void initTableReduceJob(String table,
                                      Class<? extends TableReduce> reducer,
                                      org.apache.hadoop.mapred.JobConf job,
                                      Class partitioner)
                               throws IOException
Use this before submitting a TableReduce job. It will appropriately set up the JobConf.

Parameters:
table -
reducer -
job -
partitioner - Partitioner to use. Pass null to use default partitioner.
Throws:
IOException


Copyright © 2008 The Apache Software Foundation