public class FiliApiMetricName extends Object implements ApiMetricName
| Constructor and Description |
|---|
FiliApiMetricName(String name,
TimeGrain timeGrain)
Constructs a FiliApiMetricName.
|
| 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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisValidFor, isValidFor, ofpublic 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 forpublic String getApiName()
ApiMetricNamegetApiName in interface ApiMetricNameCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.