Class ClientModeStrategy
java.lang.Object
org.apache.hadoop.hbase.hbtop.mode.ClientModeStrategy
- All Implemented Interfaces:
ModeStrategy
Implementation for
ModeStrategy for client Mode.-
Field Summary
Fields -
Constructor Summary
Constructors -
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) RecordcreateRecord(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:
getFieldInfosin interfaceModeStrategy
-
getDefaultSortField
- Specified by:
getDefaultSortFieldin interfaceModeStrategy
-
getRecords
- Specified by:
getRecordsin 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:
drillDownin interfaceModeStrategy
-