Class TestTableMapReduceBase

java.lang.Object
org.apache.hadoop.hbase.mapreduce.TestTableMapReduceBase
Direct Known Subclasses:
TestTableMapReduce, TestTableMapReduce

public abstract class TestTableMapReduceBase extends Object
A base class for a test Map/Reduce job over HBase tables. The map/reduce process we're testing on our tables is simple - take every row in the table, reverse the value of a particular cell, and write it back to the table. Implements common components between mapred and mapreduce implementations.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final byte[][]
     
    protected static final byte[]
     
    protected static final org.apache.hadoop.hbase.TableName
     
    protected static final byte[]
     
    protected static final org.apache.hadoop.hbase.TableName
     
    protected static final HBaseTestingUtil
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
     
    static void
     
    protected abstract org.slf4j.Logger
    Retrieve my logger instance.
    protected static org.apache.hadoop.hbase.client.Put
    map(org.apache.hadoop.hbase.io.ImmutableBytesWritable key, org.apache.hadoop.hbase.client.Result value)
    Implements mapper logic for use across APIs.
    protected abstract void
    runTestOnTable(org.apache.hadoop.hbase.client.Table table)
    Handles API-specifics for setting up and executing the job.
    void
     
    void
    Test a map/reduce against a multi-region table
    protected void
    verify(org.apache.hadoop.hbase.TableName tableName)
     
    private void
    verifyAttempt(org.apache.hadoop.hbase.client.Table table)
    Looks at every value of the mapreduce output and verifies that indeed the values have been reversed.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait