Package org.apache.hadoop.hbase.io.hfile
Class TestHFileSeek
java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestHFileSeek
test the performance for seek.
Copied from hadoop-3315 tfile. Remove after tfile is committed and use the tfile version of this class instead.
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
private static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final byte[]
static final HBaseClassTestRule
private org.apache.hadoop.conf.Configuration
private org.apache.hadoop.fs.FileSystem
private RandomDistribution.DiscreteRNG
private KVGenerator
private static final org.slf4j.Logger
private TestHFileSeek.MyOptions
private org.apache.hadoop.fs.Path
private static final byte[]
private Random
private NanoTimer
private static final boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static org.apache.hadoop.fs.FSDataOutputStream
createFSOutput
(org.apache.hadoop.fs.Path name, org.apache.hadoop.fs.FileSystem fs) private void
static void
void
void
setUp()
void
tearDown()
void
-
Field Details
-
CLASS_RULE
-
CF
-
QUAL
-
USE_PREAD
- See Also:
-
options
-
conf
-
path
-
fs
-
timer
-
rng
-
keyLenGen
-
kvGen
-
LOG
-
-
Constructor Details
-
TestHFileSeek
public TestHFileSeek()
-
-
Method Details
-
setUp
- Throws:
IOException
-
tearDown
-
createFSOutput
private static org.apache.hadoop.fs.FSDataOutputStream createFSOutput(org.apache.hadoop.fs.Path name, org.apache.hadoop.fs.FileSystem fs) throws IOException - Throws:
IOException
-
createTFile
- Throws:
IOException
-
seekTFile
- Throws:
IOException
-
testSeeks
- Throws:
IOException
-
main
- Throws:
IOException
-