MCPcopy
hub / github.com/prometheus/prometheus / NewBlockQuerier

Function NewBlockQuerier

tsdb/querier.go:161–167  ·  view source on GitHub ↗

NewBlockQuerier returns a querier against the block reader and requested min and max time range.

(b BlockReader, mint, maxt int64)

Source from the content-addressed store, hash-verified

159
160// NewBlockQuerier returns a querier against the block reader and requested min and max time range.
161func NewBlockQuerier(b BlockReader, mint, maxt int64) (storage.Querier, error) {
162 q, err := newBlockBaseQuerier(b, mint, maxt)
163 if err != nil {
164 return nil, err
165 }
166 return &blockQuerier{blockBaseQuerier: q}, nil
167}
168
169func (q *blockQuerier) Select(ctx context.Context, sortSeries bool, hints *storage.SelectHints, ms ...*labels.Matcher) storage.SeriesSet {
170 return selectSeriesSet(ctx, sortSeries, hints, ms, q.index, q.chunks, q.tombstones, q.mint, q.maxt)

Calls 1

newBlockBaseQuerierFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…