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

Method reset

pkg/querier/batch/stream.go:17–21  ·  view source on GitHub ↗

reset, hasNext, next, atTime etc are all inlined in go1.11.

()

Source from the content-addressed store, hash-verified

15// reset, hasNext, next, atTime etc are all inlined in go1.11.
16
17func (bs *batchStream) reset() {
18 for i := range *bs {
19 (*bs)[i].Index = 0
20 }
21}
22
23func (bs *batchStream) hasNext() chunkenc.ValueType {
24 if len(*bs) > 0 {

Callers 3

mergeStreamsFunction · 0.45
nextMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected