protected static class BaseGranularitySpec.LookupIntervalBuckets extends Object
| Constructor and Description |
|---|
LookupIntervalBuckets(Iterable<org.joda.time.Interval> intervalIterable) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.base.Optional<org.joda.time.Interval> |
bucketInterval(org.joda.time.DateTime dt)
Returns a bucket interval using a fast lookup into an efficient data structure
where all the intervals have been materialized
|
Iterator<org.joda.time.Interval> |
iterator() |
TreeSet<org.joda.time.Interval> |
materializedIntervals()
Helper method to avoid collecting the intervals from the iterator
|
public LookupIntervalBuckets(Iterable<org.joda.time.Interval> intervalIterable)
intervalIterable - The intervals to materializepublic com.google.common.base.Optional<org.joda.time.Interval> bucketInterval(org.joda.time.DateTime dt)
dt - The date time to lookuppublic Iterator<org.joda.time.Interval> iterator()
public TreeSet<org.joda.time.Interval> materializedIntervals()
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.