public class TopNMetric extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TopNMetric.TopNMetricType
Types of topN metrics.
|
Constructor and Description |
---|
TopNMetric(String metricName)
Constructs a numeric sort of the given metric with default sorting order (descending).
|
TopNMetric(String metricName,
SortDirection order)
Constructs a numeric sort of the given metric and explicitly specifies the order (ascending or descending).
|
TopNMetric(TopNMetric.TopNMetricType type,
String previousStop)
Constructs a sort of the given type with a starting point.
|
TopNMetric(TopNMetric.TopNMetricType type,
String previousStop,
SortDirection order)
Constructs a sort of the given type with a starting point and explicitly specifies the order (ascending or
descending).
|
Modifier and Type | Method and Description |
---|---|
Object |
getMetric()
Getter for the metric of TopNMetric.
|
String |
getPreviousStop()
Getter for the previousStop of TopNMetric.
|
TopNMetric.TopNMetricType |
getType()
Getter for the type of TopNMetric.
|
public TopNMetric(String metricName)
metricName
- the metric namepublic TopNMetric(String metricName, SortDirection order)
metricName
- the metric nameorder
- sorting orderpublic TopNMetric(TopNMetric.TopNMetricType type, String previousStop)
type
- the type of sortpreviousStop
- the starting point of the sortpublic TopNMetric(TopNMetric.TopNMetricType type, String previousStop, SortDirection order)
type
- the type of sortpreviousStop
- the starting point of the sortorder
- sorting orderpublic TopNMetric.TopNMetricType getType()
public Object getMetric()
public String getPreviousStop()
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.