Package org.apache.hadoop.hbase
Class PerformanceEvaluation.AsyncScanTest
java.lang.Object
org.apache.hadoop.hbase.PerformanceEvaluation.TestBase
org.apache.hadoop.hbase.PerformanceEvaluation.AsyncTest
org.apache.hadoop.hbase.PerformanceEvaluation.AsyncTableTest
org.apache.hadoop.hbase.PerformanceEvaluation.AsyncScanTest
- Enclosing class:
- PerformanceEvaluation
-
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.AsyncTable<?>
private org.apache.hadoop.hbase.client.ResultScanner
Fields inherited from class org.apache.hadoop.hbase.PerformanceEvaluation.AsyncTableTest
table
Fields inherited from class org.apache.hadoop.hbase.PerformanceEvaluation.AsyncTest
connection
Fields inherited from class org.apache.hadoop.hbase.PerformanceEvaluation.TestBase
conf, opts, rand
-
Constructor Summary
ConstructorDescriptionAsyncScanTest
(org.apache.hadoop.hbase.client.AsyncConnection con, PerformanceEvaluation.TestOptions options, PerformanceEvaluation.Status status) -
Method Summary
Modifier and TypeMethodDescription(package private) void
(package private) boolean
testRow
(int i, long startTime) Test for individual row.(package private) void
Methods inherited from class org.apache.hadoop.hbase.PerformanceEvaluation.AsyncTableTest
onTakedown
Methods inherited from class org.apache.hadoop.hbase.PerformanceEvaluation.TestBase
generateStatus, getLastRow, getLatencyHistogram, getReportingPeriod, getShortLatencyReport, getShortValueSizeReport, getStartRow, getValueLength, isRandomValueSize, test, testSetup, testTimed, updateScanMetrics, updateValueSize, updateValueSize, updateValueSize, updateValueSize, updateValueSize
-
Field Details
-
testScanner
-
asyncTable
-
-
Constructor Details
-
AsyncScanTest
AsyncScanTest(org.apache.hadoop.hbase.client.AsyncConnection con, PerformanceEvaluation.TestOptions options, PerformanceEvaluation.Status status)
-
-
Method Details
-
onStartup
- Overrides:
onStartup
in classPerformanceEvaluation.AsyncTableTest
- Throws:
IOException
-
testTakedown
- Overrides:
testTakedown
in classPerformanceEvaluation.TestBase
- 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
-