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

Struct chunkIterator

pkg/querier/batch/chunk.go:12–16  ·  view source on GitHub ↗

chunkIterator implement batchIterator over a chunk. Its is designed to be reused by calling reset() with a fresh chunk.

Source from the content-addressed store, hash-verified

10// chunkIterator implement batchIterator over a chunk. Its is designed to be
11// reused by calling reset() with a fresh chunk.
12type chunkIterator struct {
13 chunk GenericChunk
14 it promchunk.Iterator
15 batch promchunk.Batch
16}
17
18func (i *chunkIterator) reset(chunk GenericChunk) {
19 i.chunk = chunk

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected