public interface GranularitySpec
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
asMap(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
com.google.common.base.Optional<org.joda.time.Interval> |
bucketInterval(org.joda.time.DateTime dt)
Time-grouping interval corresponding to some instant, if any.
|
Granularity |
getQueryGranularity() |
Granularity |
getSegmentGranularity() |
List<org.joda.time.Interval> |
inputIntervals()
Returns user provided intervals as-is state.
|
boolean |
isRollup() |
TreeSet<org.joda.time.Interval> |
materializedBucketIntervals()
This is a helper method for areas of the code, not in the overlord, were for performance
reasons might need the materialized set of bucket intervals
|
Iterable<org.joda.time.Interval> |
sortedBucketIntervals()
Iterable all time groups, broken up on segment boundaries.
|
GranularitySpec |
withIntervals(List<org.joda.time.Interval> inputIntervals) |
Iterable<org.joda.time.Interval> sortedBucketIntervals()
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 forTreeSet<org.joda.time.Interval> materializedBucketIntervals()
Granularity getSegmentGranularity()
boolean isRollup()
Granularity getQueryGranularity()
GranularitySpec withIntervals(List<org.joda.time.Interval> inputIntervals)
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.