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

Function ExtractBlocksFromContext

pkg/querier/block.go:22–28  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

20}
21
22func ExtractBlocksFromContext(ctx context.Context) ([]*bucketindex.Block, bool) {
23 if blocks := ctx.Value(blockCtxKey); blocks != nil {
24 return blocks.([]*bucketindex.Block), true
25 }
26
27 return nil, false
28}
29
30func convertMatchersToLabelMatcher(matchers []*labels.Matcher) []storepb.LabelMatcher {
31 var converted []storepb.LabelMatcher

Callers 5

SelectMethod · 0.85
LabelValuesMethod · 0.85
LabelNamesMethod · 0.85
NewParquetQueryableFunction · 0.85

Calls 1

ValueMethod · 0.45

Tested by 3

SelectMethod · 0.68
LabelValuesMethod · 0.68
LabelNamesMethod · 0.68