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.RecordcreateTestRecord(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 voidtestFilter(List<org.apache.hadoop.hbase.hbtop.Record> records, String filterString, boolean ignoreCase, String... expectedRegions) voidprivate voidtestFilters(List<org.apache.hadoop.hbase.hbtop.Record> records, List<String> filterStrings, boolean ignoreCase, String... expectedRegions) voidvoidprivate voidtestParseAndBuilder(String filterString, boolean ignoreCase, org.apache.hadoop.hbase.hbtop.RecordFilter expected) voidvoidprivate voidtestToString(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)
-