MCPcopy Create free account
hub / github.com/cortexproject/cortex / AtHistogram

Method AtHistogram

pkg/querier/batch/batch.go:162–164  ·  view source on GitHub ↗

AtHistogram implements chunkenc.Iterator.

(h *histogram.Histogram)

Source from the content-addressed store, hash-verified

160
161// AtHistogram implements chunkenc.Iterator.
162func (a *iteratorAdapter) AtHistogram(h *histogram.Histogram) (int64, *histogram.Histogram) {
163 return a.curr.Timestamps[a.curr.Index], a.curr.Histograms[a.curr.Index]
164}
165
166// AtFloatHistogram implements chunkenc.Iterator.
167func (a *iteratorAdapter) AtFloatHistogram(h *histogram.FloatHistogram) (int64, *histogram.FloatHistogram) {

Callers 4

testIterFunction · 0.45
testSeekFunction · 0.45

Calls

no outgoing calls

Tested by 4

testIterFunction · 0.36
testSeekFunction · 0.36