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

Method Seek

pkg/querier/batch/non_overlapping.go:25–35  ·  view source on GitHub ↗
(t int64, size int)

Source from the content-addressed store, hash-verified

23}
24
25func (it *nonOverlappingIterator) Seek(t int64, size int) chunkenc.ValueType {
26 for {
27 if valType := it.iter.Seek(t, size); valType != chunkenc.ValNone {
28 return valType
29 } else if it.iter.Err() != nil {
30 return chunkenc.ValNone
31 } else if !it.next() {
32 return chunkenc.ValNone
33 }
34 }
35}
36
37func (it *nonOverlappingIterator) MaxCurrentChunkTime() int64 {
38 return it.iter.MaxCurrentChunkTime()

Callers

nothing calls this directly

Calls 3

nextMethod · 0.95
SeekMethod · 0.65
ErrMethod · 0.65

Tested by

no test coverage detected