@InterfaceAudience.Private public final class ClientModeStrategy extends Object implements ModeStrategy
ModeStrategy
for client Mode.Modifier and Type | Field and Description |
---|---|
private List<FieldInfo> |
fieldInfos |
private Map<String,RequestCountPerSecond> |
requestCountPerSecondMap |
Constructor and Description |
---|
ClientModeStrategy() |
Modifier and Type | Method and Description |
---|---|
(package private) List<Record> |
aggregateRecordsAndAddDistinct(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) |
(package private) List<Record> |
createRecords(ClusterMetrics clusterMetrics) |
DrillDownInfo |
drillDown(Record selectedRecord) |
Field |
getDefaultSortField() |
List<FieldInfo> |
getFieldInfos() |
List<Record> |
getRecords(ClusterMetrics clusterMetrics,
List<RecordFilter> pushDownFilters) |
private final List<FieldInfo> fieldInfos
private final Map<String,RequestCountPerSecond> requestCountPerSecondMap
ClientModeStrategy()
public List<FieldInfo> getFieldInfos()
getFieldInfos
in interface ModeStrategy
public Field getDefaultSortField()
getDefaultSortField
in interface ModeStrategy
public List<Record> getRecords(ClusterMetrics clusterMetrics, List<RecordFilter> pushDownFilters)
getRecords
in interface ModeStrategy
List<Record> createRecords(ClusterMetrics clusterMetrics)
List<Record> aggregateRecordsAndAddDistinct(List<Record> records, Field groupBy, Field distinctField, Field uniqueCountAssignedTo)
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 toRecord createRecord(String user, UserMetrics.ClientMetrics clientMetrics, long lastReportTimestamp, String server)
public DrillDownInfo drillDown(Record selectedRecord)
drillDown
in interface ModeStrategy
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.