queryable

package
v0.0.0-...-65ebeae Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultQueryableOpts = queryableOpts{
	// contains filtered or unexported fields
}

Functions

func NewParquetQueryable

func NewParquetQueryable(
	shardFinder ShardsFinderFunction,
	constraintCacheFunc ConstraintCacheFunction,
	chunksDecoder *schema.PrometheusParquetChunksDecoder,
	opts ...QueryableOpts,
) (prom_storage.Queryable, error)

Types

type ConstraintCacheFunction

type ConstraintCacheFunction func(ctx context.Context) (search.RowRangesForConstraintsCache, error)

type QueryableOpts

type QueryableOpts func(*queryableOpts)

func WithCacheRowRangesForConstraints

func WithCacheRowRangesForConstraints(cache bool) QueryableOpts

WithCacheRowRangesForConstraints set the concurrency that can be used to run the query

func WithChunkBytesLimitFunc

func WithChunkBytesLimitFunc(fn search.QuotaLimitFunc) QueryableOpts

WithChunkBytesLimitFunc sets a callback function to get limit for chunk column page bytes fetched.

func WithConcurrency

func WithConcurrency(concurrency int) QueryableOpts

WithConcurrency set the concurrency that can be used to run the query

func WithDataBytesLimitFunc

func WithDataBytesLimitFunc(fn search.QuotaLimitFunc) QueryableOpts

WithDataBytesLimitFunc sets a callback function to get limit for data (including label and chunk) column page bytes fetched.

func WithHonorProjectionHints

func WithHonorProjectionHints(honor bool) QueryableOpts

WithHonorProjectionHints enables or disables projection pushdown optimization. When enabled, only the labels specified in SelectHints.ProjectionLabels will be materialized.

func WithMaterializedLabelsFilterCallback

func WithMaterializedLabelsFilterCallback(cb search.MaterializedLabelsFilterCallback) QueryableOpts

WithMaterializedLabelsFilterCallback sets a callback function to create a filter that can be used to filter series based on their labels before materializing chunks.

func WithMaterializedSeriesCallback

func WithMaterializedSeriesCallback(fn search.MaterializedSeriesFunc) QueryableOpts

WithMaterializedSeriesCallback sets a callback function to process the materialized series.

func WithRowCountLimitFunc

func WithRowCountLimitFunc(fn search.QuotaLimitFunc) QueryableOpts

WithRowCountLimitFunc sets a callback function to get limit for matched row count.

type ShardsFinderFunction

type ShardsFinderFunction func(ctx context.Context, mint, maxt int64) ([]storage.ParquetShard, error)

Jump to

Keyboard shortcuts

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