Class ClientModeStrategy
java.lang.Object
org.apache.hadoop.hbase.hbtop.mode.ClientModeStrategy
- All Implemented Interfaces:
ModeStrategy
Implementation for
ModeStrategy
for client Mode.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaggregateRecordsAndAddDistinct
(List<Record> records, Field groupBy, Field distinctField, Field uniqueCountAssignedTo) Aggregate the records and count the unique values for the given distinctField(package private) Record
createRecord
(String user, UserMetrics.ClientMetrics clientMetrics, long lastReportTimestamp, String server) createRecords
(ClusterMetrics clusterMetrics) getRecords
(ClusterMetrics clusterMetrics, List<RecordFilter> pushDownFilters)
-
Field Details
-
fieldInfos
-
requestCountPerSecondMap
-
-
Constructor Details
-
ClientModeStrategy
-
-
Method Details
-
getFieldInfos
- Specified by:
getFieldInfos
in interfaceModeStrategy
-
getDefaultSortField
- Specified by:
getDefaultSortField
in interfaceModeStrategy
-
getRecords
- Specified by:
getRecords
in interfaceModeStrategy
-
createRecords
-
aggregateRecordsAndAddDistinct
List<Record> aggregateRecordsAndAddDistinct(List<Record> records, Field groupBy, Field distinctField, Field uniqueCountAssignedTo) Aggregate the records and count the unique values for the given distinctField- Parameters:
records
- records to be processedgroupBy
- Field on which group by needs to be donedistinctField
- Field whose unique values needs to be counteduniqueCountAssignedTo
- a target field to which the unique count is assigned to- Returns:
- aggregated records
-
createRecord
Record createRecord(String user, UserMetrics.ClientMetrics clientMetrics, long lastReportTimestamp, String server) -
drillDown
- Specified by:
drillDown
in interfaceModeStrategy
-