Modifier and Type | Method and Description |
---|---|
boolean |
ApiMetricName.isValidFor(TimeGrain grain)
Determine if this API Metric Name is valid for the given time grain.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ZonelessTimeGrain
An interface to support classes which implement a Time Grain without Zone information.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultTimeGrain
DefaultTimeGrain are a set of concrete TimeGrain implementations which support 'natural', simple to describe time
blocks corresponding to standard rounding rules.
|
class |
ZonedTimeGrain
TimeGrain with a time zone and a Zoneless Time Grain.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultTimeGrain.addSatisfyingGrain(TimeGrain satisfies)
Notifies this grain that it can be decomposed to another grain.
|
boolean |
TimeGrain.satisfiedBy(TimeGrain grain)
True if the argument grain can be used to build this grain.
|
boolean |
DefaultTimeGrain.satisfiedBy(TimeGrain grain) |
boolean |
ZonedTimeGrain.satisfiedBy(TimeGrain grain) |
Modifier and Type | Method and Description |
---|---|
static Optional<TimeGrain> |
IntervalUtils.getTimeGrain(org.joda.time.Interval interval)
Find a valid timegrain for the interval based on the start and end date of the interval.
|
Modifier and Type | Method and Description |
---|---|
static org.joda.time.DateTime |
DateTimeUtils.addTimeGrain(org.joda.time.DateTime dateTime,
TimeGrain timeGrain)
Adds timeGrain to a given dateTime.
|
static List<org.joda.time.Interval> |
DateTimeUtils.sliceIntervals(org.joda.time.Interval interval,
TimeGrain timeGrain)
Slices the intervals into smaller intervals of the timeGrain duration.
|
Modifier and Type | Method and Description |
---|---|
org.joda.time.DateTime |
MacroCalculationStrategies.getDateTime(org.joda.time.DateTime dateTime,
TimeGrain timeGrain)
Get the DateTime for the macro given the DateTime to base from and the timeGrain to determine how far to move.
|
org.joda.time.DateTime |
NextMacroCalculation.getDateTime(org.joda.time.DateTime dateTime,
TimeGrain timeGrain) |
org.joda.time.DateTime |
CurrentMacroCalculation.getDateTime(org.joda.time.DateTime dateTime,
TimeGrain timeGrain) |
org.joda.time.DateTime |
TimeMacro.getDateTime(org.joda.time.DateTime dateTime,
TimeGrain timeGrain)
Calculate the macro-adjusted DateTime under the TimeGrain.
|
Modifier and Type | Method and Description |
---|---|
protected org.joda.time.DateTime |
DataApiRequestImpl.getCurrentDate(org.joda.time.DateTime dateTime,
TimeGrain timeGrain)
Generate current date based on granularity.
|
Modifier and Type | Method and Description |
---|---|
TimeGrain |
DataSourceConfiguration.getValidTimeGrain()
Gets the
TimeGrain which is valid for use in queries. |
TimeGrain |
TableConfig.getValidTimeGrain()
Gets the valid TimeGrains for the datasource.
|
Modifier and Type | Method and Description |
---|---|
void |
TableConfig.setTimeGrain(TimeGrain timeGrain)
Sets
TimeGrain of the datasource. |
Modifier and Type | Method and Description |
---|---|
boolean |
FiliApiMetricName.isValidFor(TimeGrain grain) |
Constructor and Description |
---|
FiliApiMetricName(String name,
TimeGrain timeGrain)
Constructs a FiliApiMetricName.
|
Modifier and Type | Method and Description |
---|---|
boolean |
WikiApiMetricName.isValidFor(TimeGrain grain) |
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.