public interface GranularitySpec
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<org.joda.time.Interval> |
bucketInterval(org.joda.time.DateTime dt)
Time-grouping interval corresponding to some instant, if any.
|
com.google.common.base.Optional<SortedSet<org.joda.time.Interval>> |
bucketIntervals()
Set of all time groups, broken up on segment boundaries.
|
Granularity |
getQueryGranularity() |
Granularity |
getSegmentGranularity() |
List<org.joda.time.Interval> |
inputIntervals()
Returns user provided intervals as-is state.
|
boolean |
isRollup() |
GranularitySpec |
withIntervals(List<org.joda.time.Interval> inputIntervals) |
com.google.common.base.Optional<SortedSet<org.joda.time.Interval>> bucketIntervals()
List<org.joda.time.Interval> inputIntervals()
com.google.common.base.Optional<org.joda.time.Interval> bucketInterval(org.joda.time.DateTime dt)
dt
- instant to return time interval forGranularity getSegmentGranularity()
boolean isRollup()
Granularity getQueryGranularity()
GranularitySpec withIntervals(List<org.joda.time.Interval> inputIntervals)
Copyright © 2011–2017. All rights reserved.