Package org.apache.hadoop.hbase
Class PerformanceEvaluation.MetaRandomReadTest
java.lang.Object
org.apache.hadoop.hbase.PerformanceEvaluation.TestBase
org.apache.hadoop.hbase.PerformanceEvaluation.Test
org.apache.hadoop.hbase.PerformanceEvaluation.TableTest
org.apache.hadoop.hbase.PerformanceEvaluation.MetaTest
org.apache.hadoop.hbase.PerformanceEvaluation.MetaRandomReadTest
- Enclosing class:
- PerformanceEvaluation
-
Field Summary
Modifier and TypeFieldDescriptionprivate Random
private org.apache.hadoop.hbase.client.RegionLocator
Fields inherited from class org.apache.hadoop.hbase.PerformanceEvaluation.MetaTest
keyLength
Fields inherited from class org.apache.hadoop.hbase.PerformanceEvaluation.TableTest
table
Fields inherited from class org.apache.hadoop.hbase.PerformanceEvaluation.Test
connection
Fields inherited from class org.apache.hadoop.hbase.PerformanceEvaluation.TestBase
conf, opts, rand
-
Constructor Summary
ConstructorDescriptionMetaRandomReadTest
(org.apache.hadoop.hbase.client.Connection con, PerformanceEvaluation.TestOptions options, PerformanceEvaluation.Status status) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
(package private) void
(package private) boolean
testRow
(int i, long startTime) Test for individual row.protected void
Methods inherited from class org.apache.hadoop.hbase.PerformanceEvaluation.MetaTest
getSplitKey, onTakedown
Methods inherited from class org.apache.hadoop.hbase.PerformanceEvaluation.TestBase
generateStatus, getLastRow, getLatencyHistogram, getShortLatencyReport, getShortValueSizeReport, getStartRow, getValueLength, isRandomValueSize, test, testSetup, testTimed, updateScanMetrics, updateValueSize, updateValueSize, updateValueSize, updateValueSize, updateValueSize
-
Field Details
-
rd
-
regionLocator
-
-
Constructor Details
-
MetaRandomReadTest
MetaRandomReadTest(org.apache.hadoop.hbase.client.Connection con, PerformanceEvaluation.TestOptions options, PerformanceEvaluation.Status status)
-
-
Method Details
-
onStartup
- Overrides:
onStartup
in classPerformanceEvaluation.TableTest
- Throws:
IOException
-
testRow
Description copied from class:PerformanceEvaluation.TestBase
Test for individual row.- Specified by:
testRow
in classPerformanceEvaluation.TestBase
- Parameters:
i
- Row index.- Returns:
- true if the row was sent to server and need to record metrics. False if not, multiGet and multiPut e.g., the rows are sent to server only if enough gets/puts are gathered.
- Throws:
IOException
InterruptedException
-
getReportingPeriod
- Overrides:
getReportingPeriod
in classPerformanceEvaluation.TestBase
-
testTakedown
- Overrides:
testTakedown
in classPerformanceEvaluation.TestBase
- Throws:
IOException
-