public class TestHFileSeek extends Object
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() |
public 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
IOException
public void tearDown()
private static org.apache.hadoop.fs.FSDataOutputStream createFSOutput(org.apache.hadoop.fs.Path name, org.apache.hadoop.fs.FileSystem fs) throws IOException
IOException
private void createTFile() throws IOException
IOException
public void seekTFile() throws IOException
IOException
public void testSeeks() throws IOException
IOException
public static void main(String[] argv) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.