MCPcopy Index your code
hub / github.com/prometheus/prometheus / iterator

Method iterator

storage/buffer.go:342–345  ·  view source on GitHub ↗

Resets and returns the iterator. Invalidates previously returned iterators.

()

Source from the content-addressed store, hash-verified

340
341// Resets and returns the iterator. Invalidates previously returned iterators.
342func (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.

Callers 4

TestSampleRingFloatSTFunction · 0.45
TestSampleRingMixedFunction · 0.45
BufferMethod · 0.45

Calls 1

resetMethod · 0.45

Tested by 3

TestSampleRingFloatSTFunction · 0.36
TestSampleRingMixedFunction · 0.36