Resets and returns the iterator. Invalidates previously returned iterators.
()
| 340 | |
| 341 | // Resets and returns the iterator. Invalidates previously returned iterators. |
| 342 | func (r *sampleRing) iterator() *SampleRingIterator { |
| 343 | r.it.reset(r) |
| 344 | return &r.it |
| 345 | } |
| 346 | |
| 347 | // SampleRingIterator is returned by BufferedSeriesIterator.Buffer() and can be |
| 348 | // used to iterate samples buffered in the lookback window. |