MCPcopy
hub / github.com/prometheus/prometheus / Next

Method Next

tsdb/querier.go:812–830  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

810}
811
812func (p *populateWithDelSeriesIterator) Next() chunkenc.ValueType {
813 if p.curr != nil {
814 if valueType := p.curr.Next(); valueType != chunkenc.ValNone {
815 return valueType
816 }
817 }
818
819 for p.next(false) {
820 if p.currDelIter != nil {
821 p.curr = p.currDelIter
822 } else {
823 p.curr = p.currMeta.Chunk.Iterator(p.curr)
824 }
825 if valueType := p.curr.Next(); valueType != chunkenc.ValNone {
826 return valueType
827 }
828 }
829 return chunkenc.ValNone
830}
831
832func (p *populateWithDelSeriesIterator) Seek(t int64) chunkenc.ValueType {
833 if p.curr != nil {

Calls 3

NextMethod · 0.65
IteratorMethod · 0.65
nextMethod · 0.45