Help us shape the future of Go! Take the 2026 Go Developer Survey

storage

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanners

type Scanners interface {
	Close() error
	NewVectorSelector(ctx context.Context, opts *query.Options, hints storage.SelectHints, selector logicalplan.VectorSelector) (model.VectorOperator, error)
	NewMatrixSelector(ctx context.Context, opts *query.Options, hints storage.SelectHints, selector logicalplan.MatrixSelector, call logicalplan.FunctionCall) (model.VectorOperator, error)

	// SeriesCounter returns the querier's count-pushdown capability, or nil if unsupported.
	SeriesCounter() SeriesCounter
}

type SeriesCounter added in v0.6.0

type SeriesCounter interface {
	CountSeries(ctx context.Context, startMs, endMs int64, matchers ...*labels.Matcher) (uint64, error)
}

SeriesCounter is the optional count-pushdown capability a Scanners implementation exposes from its underlying querier: it returns the number of series matching matchers with at least one sample in [startMs, endMs] (Prometheus milliseconds), without materializing samples or labels. It backs the PromQL `count(<selector>)` fast path. A Scanners whose querier does not support it returns nil from SeriesCounter and the plan falls back to the aggregate-over-Select path.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL