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

Method FindAtOrAfter

pkg/chunk/chunk.go:53–58  ·  view source on GitHub ↗
(time model.Time)

Source from the content-addressed store, hash-verified

51}
52
53func (p *prometheusChunkIterator) FindAtOrAfter(time model.Time) chunkenc.ValueType {
54 // FindAtOrAfter must return OLDEST value at given time. That means we need to start with a fresh iterator,
55 // otherwise we cannot guarantee OLDEST.
56 p.it = p.c.Iterator(p.it)
57 return p.it.Seek(int64(time))
58}
59
60func (p *prometheusChunkIterator) Batch(size int, valType chunkenc.ValueType) Batch {
61 var batch Batch

Callers

nothing calls this directly

Calls 2

SeekMethod · 0.65
IteratorMethod · 0.45

Tested by

no test coverage detected