public enum WikiApiMetricName extends Enum<WikiApiMetricName> implements ApiMetricName
| Modifier and Type | Method and Description |
|---|---|
String |
asName()
Get the name as it should be used in Druid Queries.
|
String |
getApiName()
The API Name is the external, end-user-facing name for the metric.
|
boolean |
isValidFor(TimeGrain grain)
Determine if this API Metric Name is valid for the given time grain.
|
String |
toString() |
static WikiApiMetricName |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WikiApiMetricName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfisValidFor, isValidFor, ofpublic static final WikiApiMetricName COUNT
public static final WikiApiMetricName ADDED
public static final WikiApiMetricName DELTA
public static final WikiApiMetricName DELETED
public static WikiApiMetricName[] values()
for (WikiApiMetricName c : WikiApiMetricName.values()) System.out.println(c);
public static WikiApiMetricName valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<WikiApiMetricName>public String getApiName()
ApiMetricNamegetApiName in interface ApiMetricNamepublic String asName()
FieldNamepublic boolean isValidFor(TimeGrain grain)
ApiMetricNameAn example of this is a DailyAverage metric than doesn't make sense at the Day grain, but does at the Week.
isValidFor in interface ApiMetricNamegrain - TimeGrain to determine validity forCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.