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

Method Next

pkg/querier/batch/chunk.go:59–67  ·  view source on GitHub ↗
(size int)

Source from the content-addressed store, hash-verified

57}
58
59func (i *chunkIterator) Next(size int) chunkenc.ValueType {
60 if valueType := i.it.Scan(); valueType != chunkenc.ValNone {
61 i.batch = i.it.Batch(size, valueType)
62 if i.batch.Length > 0 {
63 return valueType
64 }
65 }
66 return chunkenc.ValNone
67}
68
69func (i *chunkIterator) AtTime() int64 {
70 return i.batch.Timestamps[0]

Callers

nothing calls this directly

Calls 2

ScanMethod · 0.65
BatchMethod · 0.65

Tested by

no test coverage detected