selectors

package
v0.0.0-...-457fe6c Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstantVectorSelector

type InstantVectorSelector struct {
	Selector                 *Selector
	MemoryConsumptionTracker *limiting.MemoryConsumptionTracker
	// contains filtered or unexported fields
}

func (*InstantVectorSelector) Close

func (v *InstantVectorSelector) Close()

func (*InstantVectorSelector) ExpressionPosition

func (v *InstantVectorSelector) ExpressionPosition() posrange.PositionRange

func (*InstantVectorSelector) NextSeries

func (*InstantVectorSelector) SeriesMetadata

func (v *InstantVectorSelector) SeriesMetadata(ctx context.Context) ([]types.SeriesMetadata, error)

type RangeVectorSelector

type RangeVectorSelector struct {
	Selector *Selector
	// contains filtered or unexported fields
}

func NewRangeVectorSelector

func NewRangeVectorSelector(selector *Selector, memoryConsumptionTracker *limiting.MemoryConsumptionTracker) *RangeVectorSelector

func (*RangeVectorSelector) Close

func (m *RangeVectorSelector) Close()

func (*RangeVectorSelector) ExpressionPosition

func (m *RangeVectorSelector) ExpressionPosition() posrange.PositionRange

func (*RangeVectorSelector) NextSeries

func (m *RangeVectorSelector) NextSeries(ctx context.Context) error

func (*RangeVectorSelector) NextStepSamples

func (m *RangeVectorSelector) NextStepSamples() (*types.RangeVectorStepData, error)

func (*RangeVectorSelector) Range

func (m *RangeVectorSelector) Range() time.Duration

func (*RangeVectorSelector) SeriesMetadata

func (m *RangeVectorSelector) SeriesMetadata(ctx context.Context) ([]types.SeriesMetadata, error)

func (*RangeVectorSelector) StepCount

func (m *RangeVectorSelector) StepCount() int

type Selector

type Selector struct {
	Queryable storage.Queryable
	TimeRange types.QueryTimeRange
	Timestamp *int64 // Milliseconds since Unix epoch, only set if selector uses @ modifier (eg. metric{...} @ 123)
	Offset    int64  // In milliseconds
	Matchers  []*labels.Matcher

	ExpressionPosition posrange.PositionRange

	// Set for instant vector selectors, otherwise 0.
	LookbackDelta time.Duration

	// Set for range vector selectors, otherwise 0.
	Range time.Duration
	// contains filtered or unexported fields
}

func (*Selector) Close

func (s *Selector) Close()

func (*Selector) Next

func (s *Selector) Next(ctx context.Context, existing chunkenc.Iterator) (chunkenc.Iterator, error)

func (*Selector) SeriesMetadata

func (s *Selector) SeriesMetadata(ctx context.Context) ([]types.SeriesMetadata, error)

Jump to

Keyboard shortcuts

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