public class TestWALRecordReader extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
private static byte[] |
family |
private static org.apache.hadoop.fs.FileSystem |
fs |
private static org.apache.hadoop.fs.Path |
hbaseDir |
(package private) static org.apache.hadoop.hbase.client.RegionInfo |
info |
private static org.slf4j.Logger |
LOG |
private static org.apache.hadoop.fs.Path |
logDir |
protected org.apache.hadoop.hbase.regionserver.MultiVersionConcurrencyControl |
mvcc |
private static byte[] |
rowName |
protected static NavigableMap<byte[],Integer> |
scopes |
(package private) static org.apache.hadoop.hbase.TableName |
tableName |
private static HBaseTestingUtility |
TEST_UTIL |
private static byte[] |
value |
private static org.apache.hadoop.fs.FileSystem |
walFs |
private static org.apache.hadoop.fs.Path |
walRootDir |
| Constructor and Description |
|---|
TestWALRecordReader() |
| Modifier and Type | Method and Description |
|---|---|
private static String |
getName() |
private org.apache.hadoop.hbase.mapreduce.WALInputFormat.WALRecordReader<org.apache.hadoop.hbase.wal.WALKey> |
getReader() |
protected org.apache.hadoop.hbase.wal.WALKeyImpl |
getWalKeyImpl(long time,
NavigableMap<byte[],Integer> scopes) |
void |
setUp() |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testPartialRead()
Test partial reads from the log 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.
|
void |
testWALRecordReader()
Test basic functionality
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.conf.Configuration conf
private static org.apache.hadoop.fs.FileSystem fs
private static org.apache.hadoop.fs.Path hbaseDir
private static org.apache.hadoop.fs.FileSystem walFs
private static org.apache.hadoop.fs.Path walRootDir
static final org.apache.hadoop.hbase.TableName tableName
private static final byte[] rowName
static final org.apache.hadoop.hbase.client.RegionInfo info
private static final byte[] family
private static final byte[] value
private static org.apache.hadoop.fs.Path logDir
protected org.apache.hadoop.hbase.regionserver.MultiVersionConcurrencyControl mvcc
protected static NavigableMap<byte[],Integer> scopes
public TestWALRecordReader()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testPartialRead() throws Exception
Exceptionpublic void testWALRecordReader() throws Exception
Exceptionprotected org.apache.hadoop.hbase.wal.WALKeyImpl getWalKeyImpl(long time, NavigableMap<byte[],Integer> scopes)
private org.apache.hadoop.hbase.mapreduce.WALInputFormat.WALRecordReader<org.apache.hadoop.hbase.wal.WALKey> getReader()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.