// RangeValues implements the SeriesIterator interface. func (bit *boundedIterator) RangeValues(interval metric.Interval) []model.SamplePair { if interval.NewestInclusive < bit.start { return []model.SamplePair{} } if interval.OldestInclusive < bit.start { interval.OldestInclusive = bit.start } return bit.it.RangeValues(interval) }
// RangeValues implements the SeriesIterator interface. func (bit *boundedIterator) RangeValues(interval metric.Interval) metric.Values { if interval.NewestInclusive < bit.start { return metric.Values{} } if interval.OldestInclusive < bit.start { interval.OldestInclusive = bit.start } return bit.it.RangeValues(interval) }