Class TestWALRecordReader

java.lang.Object
org.apache.hadoop.hbase.mapreduce.TestWALRecordReader

public class TestWALRecordReader extends Object
JUnit tests for the WALRecordReader
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final HBaseClassTestRule
     
    private static org.apache.hadoop.conf.Configuration
     
    private static final byte[]
     
    private static org.apache.hadoop.fs.FileSystem
     
    private static org.apache.hadoop.fs.Path
     
    (package private) static final org.apache.hadoop.hbase.client.RegionInfo
     
    private static final org.slf4j.Logger
     
    private static org.apache.hadoop.fs.Path
     
    protected org.apache.hadoop.hbase.regionserver.MultiVersionConcurrencyControl
     
    private static final byte[]
     
    protected static NavigableMap<byte[],Integer>
     
    (package private) static final org.apache.hadoop.hbase.TableName
     
    private static final HBaseTestingUtility
     
    private static final byte[]
     
    private static org.apache.hadoop.fs.FileSystem
     
    private static org.apache.hadoop.fs.Path
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static String
     
    private org.apache.hadoop.hbase.mapreduce.WALInputFormat.WALRecordReader<org.apache.hadoop.hbase.wal.WALKey>
     
    private static String
     
    private org.apache.hadoop.fs.Path
    getWALArchiveDir(org.apache.hadoop.conf.Configuration conf)
     
    protected org.apache.hadoop.hbase.wal.WALKeyImpl
    getWalKeyImpl(long time, NavigableMap<byte[],Integer> scopes)
     
    void
     
    static void
     
    static void
     
    void
    Test partial reads from the WALs based on passed time range.
    private void
    testSplit(org.apache.hadoop.mapreduce.InputSplit split, byte[]... columns)
    Create a new reader from the split, and match the edits against the passed columns.
    private void
    testSplitWithMovingWAL(org.apache.hadoop.mapreduce.InputSplit split, byte[] col1, byte[] col2)
    Create a new reader from the split, match the edits against the passed columns, moving WAL to archive in between readings
    void
    Test basic functionality

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CLASS_RULE

      public static final HBaseClassTestRule CLASS_RULE
    • LOG

      private static final org.slf4j.Logger LOG
    • TEST_UTIL

      private static final HBaseTestingUtility TEST_UTIL
    • conf

      private static org.apache.hadoop.conf.Configuration conf
    • fs

      private static org.apache.hadoop.fs.FileSystem fs
    • hbaseDir

      private static org.apache.hadoop.fs.Path hbaseDir
    • walFs

      private static org.apache.hadoop.fs.FileSystem walFs
    • walRootDir

      private static org.apache.hadoop.fs.Path walRootDir
    • tableName

      static final org.apache.hadoop.hbase.TableName tableName
    • rowName

      private static final byte[] rowName
    • info

      static final org.apache.hadoop.hbase.client.RegionInfo info
    • family

      private static final byte[] family
    • value

      private static final byte[] value
    • logDir

      private static org.apache.hadoop.fs.Path logDir
    • mvcc

      protected org.apache.hadoop.hbase.regionserver.MultiVersionConcurrencyControl mvcc
    • scopes

      protected static NavigableMap<byte[],Integer> scopes
  • Constructor Details

  • Method Details