MCPcopy
hub / github.com/prometheus/prometheus / newChunkToSeriesDecoder

Function newChunkToSeriesDecoder

storage/series.go:280–288  ·  view source on GitHub ↗
(labels labels.Labels, chk chunks.Meta)

Source from the content-addressed store, hash-verified

278}
279
280func newChunkToSeriesDecoder(labels labels.Labels, chk chunks.Meta) Series {
281 return &SeriesEntry{
282 Lset: labels,
283 SampleIteratorFn: func(it chunkenc.Iterator) chunkenc.Iterator {
284 // TODO(bwplotka): Can we provide any chunkenc buffer?
285 return chk.Chunk.Iterator(it)
286 },
287 }
288}
289
290type seriesSetToChunkSet struct {
291 SeriesSet

Callers 2

NextMethod · 0.85
NextMethod · 0.85

Calls 1

IteratorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…