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

Method Next

pkg/querier/batch/non_overlapping.go:41–51  ·  view source on GitHub ↗
(size int)

Source from the content-addressed store, hash-verified

39}
40
41func (it *nonOverlappingIterator) Next(size int) chunkenc.ValueType {
42 for {
43 if valType := it.iter.Next(size); valType != chunkenc.ValNone {
44 return valType
45 } else if it.iter.Err() != nil {
46 return chunkenc.ValNone
47 } else if !it.next() {
48 return chunkenc.ValNone
49 }
50 }
51}
52
53func (it *nonOverlappingIterator) next() bool {
54 it.curr++

Callers

nothing calls this directly

Calls 3

nextMethod · 0.95
NextMethod · 0.65
ErrMethod · 0.65

Tested by

no test coverage detected