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
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]static final HBaseClassTestRuleprivate org.apache.hadoop.conf.Configurationprivate org.apache.hadoop.fs.FileSystemprivate RandomDistribution.DiscreteRNGprivate KVGeneratorprivate static final org.slf4j.Loggerprivate TestHFileSeek.MyOptionsprivate org.apache.hadoop.fs.Pathprivate static final byte[]private Randomprivate NanoTimerprivate static final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static org.apache.hadoop.fs.FSDataOutputStreamcreateFSOutput(org.apache.hadoop.fs.Path name, org.apache.hadoop.fs.FileSystem fs) private voidstatic voidvoidvoidsetUp()voidtearDown()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
-