Package org.apache.hadoop.hbase
Class PerformanceEvaluation.RandomScanWithRangeTest
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.RandomScanWithRangeTest
- Direct Known Subclasses:
PerformanceEvaluation.RandomScanWithRange10000Test
,PerformanceEvaluation.RandomScanWithRange1000Test
,PerformanceEvaluation.RandomScanWithRange100Test
,PerformanceEvaluation.RandomScanWithRange10Test
- Enclosing class:
- PerformanceEvaluation
abstract static class PerformanceEvaluation.RandomScanWithRangeTest
extends PerformanceEvaluation.TableTest
-
Field Summary
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, latencyHistogram, opts, rand, status
-
Constructor Summary
ConstructorDescriptionRandomScanWithRangeTest
(Connection con, PerformanceEvaluation.TestOptions options, PerformanceEvaluation.Status status) -
Method Summary
Modifier and TypeMethodDescriptionprotected Pair<byte[],
byte[]> generateStartAndStopRows
(int maxRange) protected int
protected abstract Pair<byte[],
byte[]> (package private) boolean
testRow
(int i, long startTime) Test for individual row.Methods inherited from class org.apache.hadoop.hbase.PerformanceEvaluation.TableTest
onStartup, onTakedown
Methods inherited from class org.apache.hadoop.hbase.PerformanceEvaluation.TestBase
generateStatus, getLastRow, getLatencyHistogram, getShortLatencyReport, getShortValueSizeReport, getStartRow, getValueLength, isRandomValueSize, test, testSetup, testTakedown, testTimed, updateScanMetrics, updateValueSize, updateValueSize, updateValueSize, updateValueSize, updateValueSize
-
Constructor Details
-
RandomScanWithRangeTest
RandomScanWithRangeTest(Connection con, PerformanceEvaluation.TestOptions options, PerformanceEvaluation.Status status)
-
-
Method Details
-
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
-
getStartAndStopRow
-
generateStartAndStopRows
-
getReportingPeriod
- Overrides:
getReportingPeriod
in classPerformanceEvaluation.TestBase
-