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

Function newNonOverlappingIterator

pkg/querier/batch/non_overlapping.go:17–23  ·  view source on GitHub ↗

newNonOverlappingIterator returns a single iterator over an slice of sorted, non-overlapping iterators.

(chunks []GenericChunk)

Source from the content-addressed store, hash-verified

15// newNonOverlappingIterator returns a single iterator over an slice of sorted,
16// non-overlapping iterators.
17func newNonOverlappingIterator(chunks []GenericChunk) *nonOverlappingIterator {
18 it := &nonOverlappingIterator{
19 chunks: chunks,
20 }
21 it.iter.reset(it.chunks[0])
22 return it
23}
24
25func (it *nonOverlappingIterator) Seek(t int64, size int) chunkenc.ValueType {
26 for {

Callers 3

newMergeIteratorFunction · 0.85
TestNonOverlappingIterFunction · 0.85

Calls 1

resetMethod · 0.45

Tested by 2

TestNonOverlappingIterFunction · 0.68