Package org.apache.hadoop.hbase.hbtop
Class TestRecordFilter
java.lang.Object
org.apache.hadoop.hbase.hbtop.TestRecordFilter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.hbtop.Record
createTestRecord
(String region, long requestCountPerSecond, org.apache.hadoop.hbase.Size storeFileSize, int numStoreFiles, float locality, float compactionProgress) private List<org.apache.hadoop.hbase.hbtop.Record>
private void
testFilter
(List<org.apache.hadoop.hbase.hbtop.Record> records, String filterString, boolean ignoreCase, String... expectedRegions) void
private void
testFilters
(List<org.apache.hadoop.hbase.hbtop.Record> records, List<String> filterStrings, boolean ignoreCase, String... expectedRegions) void
void
private void
testParseAndBuilder
(String filterString, boolean ignoreCase, org.apache.hadoop.hbase.hbtop.RecordFilter expected) void
void
private void
testToString
(String filterString)
-
Field Details
-
CLASS_RULE
-
-
Constructor Details
-
TestRecordFilter
public TestRecordFilter()
-
-
Method Details
-
testParseAndBuilder
-
testParseAndBuilder
private void testParseAndBuilder(String filterString, boolean ignoreCase, org.apache.hadoop.hbase.hbtop.RecordFilter expected) -
testParseFailure
-
testToString
-
testToString
-
testFilters
-
testFiltersIgnoreCase
-
createTestRecords
-
createTestRecord
private org.apache.hadoop.hbase.hbtop.Record createTestRecord(String region, long requestCountPerSecond, org.apache.hadoop.hbase.Size storeFileSize, int numStoreFiles, float locality, float compactionProgress) -
testFilter
private void testFilter(List<org.apache.hadoop.hbase.hbtop.Record> records, String filterString, boolean ignoreCase, String... expectedRegions) -
testFilters
private void testFilters(List<org.apache.hadoop.hbase.hbtop.Record> records, List<String> filterStrings, boolean ignoreCase, String... expectedRegions)
-