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, wait
isValidFor, isValidFor, of
public String asName()
FieldName
public boolean isValidFor(TimeGrain grain)
ApiMetricName
An example of this is a DailyAverage metric than doesn't make sense at the Day grain, but does at the Week.
isValidFor
in interface ApiMetricName
grain
- TimeGrain to determine validity forpublic String getApiName()
ApiMetricName
getApiName
in interface ApiMetricName
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.