public class UniformGranularitySpec extends Object implements GranularitySpec
Constructor and Description |
---|
UniformGranularitySpec(Granularity segmentGranularity,
Granularity queryGranularity,
Boolean rollup,
List<org.joda.time.Interval> inputIntervals) |
UniformGranularitySpec(Granularity segmentGranularity,
Granularity queryGranularity,
List<org.joda.time.Interval> inputIntervals) |
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.
|
boolean |
equals(Object o) |
com.google.common.base.Optional<List<org.joda.time.Interval>> |
getIntervals() |
Granularity |
getQueryGranularity() |
Granularity |
getSegmentGranularity() |
int |
hashCode() |
List<org.joda.time.Interval> |
inputIntervals()
Returns user provided intervals as-is state.
|
boolean |
isRollup() |
String |
toString() |
GranularitySpec |
withIntervals(List<org.joda.time.Interval> inputIntervals) |
public UniformGranularitySpec(Granularity segmentGranularity, Granularity queryGranularity, Boolean rollup, List<org.joda.time.Interval> inputIntervals)
public UniformGranularitySpec(Granularity segmentGranularity, Granularity queryGranularity, List<org.joda.time.Interval> inputIntervals)
public com.google.common.base.Optional<SortedSet<org.joda.time.Interval>> bucketIntervals()
GranularitySpec
bucketIntervals
in interface GranularitySpec
public List<org.joda.time.Interval> inputIntervals()
GranularitySpec
inputIntervals
in interface GranularitySpec
public com.google.common.base.Optional<org.joda.time.Interval> bucketInterval(org.joda.time.DateTime dt)
GranularitySpec
bucketInterval
in interface GranularitySpec
dt
- instant to return time interval forpublic Granularity getSegmentGranularity()
getSegmentGranularity
in interface GranularitySpec
public boolean isRollup()
isRollup
in interface GranularitySpec
public Granularity getQueryGranularity()
getQueryGranularity
in interface GranularitySpec
public com.google.common.base.Optional<List<org.joda.time.Interval>> getIntervals()
public GranularitySpec withIntervals(List<org.joda.time.Interval> inputIntervals)
withIntervals
in interface GranularitySpec
Copyright © 2011–2017. All rights reserved.