MCPcopy
hub / github.com/prometheus/prometheus / BucketIterator

Interface BucketIterator

model/histogram/generic.go:167–172  ·  view source on GitHub ↗

BucketIterator iterates over the buckets of a Histogram, returning decoded buckets.

Source from the content-addressed store, hash-verified

165// BucketIterator iterates over the buckets of a Histogram, returning decoded
166// buckets.
167type BucketIterator[BC BucketCount] interface {
168 // Next advances the iterator by one.
169 Next() bool
170 // At returns the current bucket.
171 At() Bucket[BC]
172}
173
174// baseBucketIterator provides a struct that is shared by most BucketIterator
175// implementations, together with an implementation of the At method. This

Implementers 15

mergedStringItertsdb/querier.go
DeletedIteratortsdb/querier.go
mockSeriesSettsdb/querier_test.go
mockChunkSeriesSettsdb/querier_test.go
mockSampleIteratortsdb/querier_test.go
txRingIteratortsdb/isolation.go
mockSeriesIteratortsdb/chunkenc/chunk.go
nopIteratortsdb/chunkenc/chunk.go
xor2Iteratortsdb/chunkenc/xor2.go
histogramIteratortsdb/chunkenc/histogram.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…