Class RegionModeStrategy
java.lang.Object
org.apache.hadoop.hbase.hbtop.mode.RegionModeStrategy
- All Implemented Interfaces:
ModeStrategy
Implementation for
ModeStrategy
for Region Mode.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate Record
createRecord
(ServerMetrics serverMetrics, RegionMetrics regionMetrics, long lastReportTimestamp) getRecords
(ClusterMetrics clusterMetrics, List<RecordFilter> pushDownFilters) selectModeFieldsAndAddCountField
(List<FieldInfo> fieldInfos, List<Record> records, Field countField) Form new record list with records formed by only fields provided through fieldInfo and add a count field for each record with value 1 We are doing two operation of selecting and adding new field because of saving some CPU cycles on rebuilding the record again
-
Field Details
-
fieldInfos
-
requestCountPerSecondMap
-
-
Constructor Details
-
RegionModeStrategy
-
-
Method Details
-
getFieldInfos
- Specified by:
getFieldInfos
in interfaceModeStrategy
-
getDefaultSortField
- Specified by:
getDefaultSortField
in interfaceModeStrategy
-
getRecords
- Specified by:
getRecords
in interfaceModeStrategy
-
createRecord
private Record createRecord(ServerMetrics serverMetrics, RegionMetrics regionMetrics, long lastReportTimestamp) -
selectModeFieldsAndAddCountField
List<Record> selectModeFieldsAndAddCountField(List<FieldInfo> fieldInfos, List<Record> records, Field countField) Form new record list with records formed by only fields provided through fieldInfo and add a count field for each record with value 1 We are doing two operation of selecting and adding new field because of saving some CPU cycles on rebuilding the record again- Parameters:
fieldInfos
- List of FieldInfos required in the recordrecords
- List of records which needs to be processedcountField
- Field which needs to be added with value 1 for each record- Returns:
- records after selecting required fields and adding count field
-
drillDown
- Specified by:
drillDown
in interfaceModeStrategy
-