public class TestHFileSeek extends junit.framework.TestCase
Copied from hadoop-3315 tfile. Remove after tfile is committed and use the tfile version of this class instead.
| Modifier and Type | Class and Description |
|---|---|
private static class |
TestHFileSeek.IntegerRange |
private static class |
TestHFileSeek.MyOptions |
| Modifier and Type | Field and Description |
|---|---|
private static byte[] |
CF |
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
conf |
private org.apache.hadoop.fs.FileSystem |
fs |
private RandomDistribution.DiscreteRNG |
keyLenGen |
private KVGenerator |
kvGen |
private static org.slf4j.Logger |
LOG |
private TestHFileSeek.MyOptions |
options |
private org.apache.hadoop.fs.Path |
path |
private static byte[] |
QUAL |
private Random |
rng |
private NanoTimer |
timer |
private static boolean |
USE_PREAD |
| Constructor and Description |
|---|
TestHFileSeek() |
| Modifier and Type | Method and Description |
|---|---|
private static org.apache.hadoop.fs.FSDataOutputStream |
createFSOutput(org.apache.hadoop.fs.Path name,
org.apache.hadoop.fs.FileSystem fs) |
private void |
createTFile() |
static void |
main(String[] argv) |
void |
seekTFile() |
void |
setUp() |
void |
tearDown() |
void |
testSeeks() |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringpublic static final HBaseClassTestRule CLASS_RULE
private static final byte[] CF
private static final byte[] QUAL
private static final boolean USE_PREAD
private TestHFileSeek.MyOptions options
private org.apache.hadoop.conf.Configuration conf
private org.apache.hadoop.fs.Path path
private org.apache.hadoop.fs.FileSystem fs
private RandomDistribution.DiscreteRNG keyLenGen
private KVGenerator kvGen
private static final org.slf4j.Logger LOG
public TestHFileSeek()
public void setUp() throws IOException
setUp in class junit.framework.TestCaseIOExceptionpublic void tearDown()
tearDown in class junit.framework.TestCaseprivate static org.apache.hadoop.fs.FSDataOutputStream createFSOutput(org.apache.hadoop.fs.Path name, org.apache.hadoop.fs.FileSystem fs) throws IOException
IOExceptionprivate void createTFile() throws IOException
IOExceptionpublic void seekTFile() throws IOException
IOExceptionpublic void testSeeks() throws IOException
IOExceptionpublic static void main(String[] argv) throws IOException
IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.