public class EncodedSeekPerformanceTest extends Object
Modifier and Type | Field and Description |
---|---|
private static double |
BYTES_IN_MEGABYTES |
private org.apache.hadoop.hbase.io.hfile.CacheConfig |
cacheConf |
private org.apache.hadoop.conf.Configuration |
configuration |
static int |
DEFAULT_NUMBER_OF_SEEKS
Default number of seeks which will be used in benchmark.
|
private static double |
NANOSEC_IN_SEC |
private int |
numberOfSeeks |
private Random |
randomizer |
private HBaseTestingUtility |
testingUtility |
Constructor and Description |
---|
EncodedSeekPerformanceTest()
Use this benchmark with default options
|
Modifier and Type | Method and Description |
---|---|
private void |
clearBlockCache() |
static void |
main(String[] args)
Command line interface:
|
private List<org.apache.hadoop.hbase.Cell> |
prepareListOfTestSeeks(org.apache.hadoop.fs.Path path) |
private static void |
printUsage() |
private void |
runTest(org.apache.hadoop.fs.Path path,
org.apache.hadoop.hbase.io.encoding.DataBlockEncoding blockEncoding,
List<org.apache.hadoop.hbase.Cell> seeks) |
void |
runTests(org.apache.hadoop.fs.Path path,
org.apache.hadoop.hbase.io.encoding.DataBlockEncoding[] encodings) |
private static final double NANOSEC_IN_SEC
private static final double BYTES_IN_MEGABYTES
public static int DEFAULT_NUMBER_OF_SEEKS
private final HBaseTestingUtility testingUtility
private org.apache.hadoop.conf.Configuration configuration
private org.apache.hadoop.hbase.io.hfile.CacheConfig cacheConf
private Random randomizer
private int numberOfSeeks
public EncodedSeekPerformanceTest()
private List<org.apache.hadoop.hbase.Cell> prepareListOfTestSeeks(org.apache.hadoop.fs.Path path) throws IOException
IOException
private void runTest(org.apache.hadoop.fs.Path path, org.apache.hadoop.hbase.io.encoding.DataBlockEncoding blockEncoding, List<org.apache.hadoop.hbase.Cell> seeks) throws IOException
IOException
public void runTests(org.apache.hadoop.fs.Path path, org.apache.hadoop.hbase.io.encoding.DataBlockEncoding[] encodings) throws IOException
path
- Path to the HFile which will be used.encodings
- the data block encoding algorithms to useIOException
- if there is a bug while reading from diskpublic static void main(String[] args) throws IOException
args
- Takes one argument - file size.IOException
- if there is a bug while reading from diskprivate static void printUsage()
private void clearBlockCache()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.