querysharding

package
v1.20.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CortexShardByLabel = "__CORTEX_SHARD_BY__"
)

Variables

View Source
var (
	Buffers = sync.Pool{New: func() any {
		b := make([]byte, 0, 100)
		return &b
	}}
)

Functions

func ExtractShardingInfo

func ExtractShardingInfo(matchers []*labels.Matcher) ([]*labels.Matcher, *storepb.ShardInfo, error)

func ExtractShardingMatchers

func ExtractShardingMatchers(matchers []*labels.Matcher) ([]*labels.Matcher, *storepb.ShardMatcher, error)

func InjectShardingInfo

func InjectShardingInfo(query string, shardInfo *storepb.ShardInfo) (string, error)

func NewDisableBinaryExpressionAnalyzer added in v1.20.0

func NewDisableBinaryExpressionAnalyzer(analyzer querysharding.Analyzer) *disableBinaryExpressionAnalyzer

NewDisableBinaryExpressionAnalyzer is a wrapper around the analyzer that disables binary expressions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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