MCPcopy Index your code
hub / github.com/prometheus/prometheus / NewMergedStringIter

Function NewMergedStringIter

tsdb/querier.go:1220–1222  ·  view source on GitHub ↗

NewMergedStringIter returns string iterator that allows to merge symbols on demand and stream result.

(a, b index.StringIter)

Source from the content-addressed store, hash-verified

1218
1219// NewMergedStringIter returns string iterator that allows to merge symbols on demand and stream result.
1220func NewMergedStringIter(a, b index.StringIter) index.StringIter {
1221 return &mergedStringIter{a: a, b: b, aok: a.Next(), bok: b.Next()}
1222}
1223
1224type mergedStringIter struct {
1225 a index.StringIter

Callers 2

PopulateBlockMethod · 0.85

Calls 1

NextMethod · 0.65

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…