series

package
v0.0.0-...-f2217e9 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: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LabelsToSeriesSet

func LabelsToSeriesSet(ls []labels.Labels) storage.SeriesSet

LabelsToSeriesSet creates a storage.SeriesSet from a []labels.Labels

func MatrixToSeriesSet

func MatrixToSeriesSet(m model.Matrix) storage.SeriesSet

MatrixToSeriesSet creates a storage.SeriesSet from a model.Matrix Series will be sorted by labels.

func NewConcreteSeriesIterator

func NewConcreteSeriesIterator(series *ConcreteSeries) chunkenc.Iterator

NewConcreteSeriesIterator instantiates an in memory chunkenc.Iterator

func NewConcreteSeriesSetFromSortedSeries

func NewConcreteSeriesSetFromSortedSeries(series []storage.Series) storage.SeriesSet

NewConcreteSeriesSetFromSortedSeries instantiates an in-memory series set from a slice of series already sorted by their labels.

func NewConcreteSeriesSetFromUnsortedSeries

func NewConcreteSeriesSetFromUnsortedSeries(series []storage.Series) storage.SeriesSet

NewConcreteSeriesSetFromUnsortedSeries instantiates an in-memory series set from a slice of unsorted series. The series will be sorted in place by their labels.

func NewErrIterator

func NewErrIterator(err error) chunkenc.Iterator

NewErrIterator instantiates an errIterator

func NewSeriesSetWithWarnings

func NewSeriesSetWithWarnings(wrapped storage.SeriesSet, warnings annotations.Annotations) storage.SeriesSet

Types

type ConcreteSeries

type ConcreteSeries struct {
	// contains filtered or unexported fields
}

ConcreteSeries implements storage.Series.

func NewConcreteSeries

func NewConcreteSeries(ls labels.Labels, samples []model.SamplePair, histograms []mimirpb.Histogram) *ConcreteSeries

NewConcreteSeries instantiates an in memory series from a list of samples & histograms & labels

func (*ConcreteSeries) Iterator

Iterator implements storage.Series

func (*ConcreteSeries) Labels

func (c *ConcreteSeries) Labels() labels.Labels

Labels implements storage.Series

type ConcreteSeriesSet

type ConcreteSeriesSet struct {
	// contains filtered or unexported fields
}

ConcreteSeriesSet implements storage.SeriesSet.

func (*ConcreteSeriesSet) At

At returns the current series and implements storage.SeriesSet.

func (*ConcreteSeriesSet) Err

func (c *ConcreteSeriesSet) Err() error

Err implements storage.SeriesSet.

func (*ConcreteSeriesSet) Next

func (c *ConcreteSeriesSet) Next() bool

Next iterates through a series set and implements storage.SeriesSet.

func (*ConcreteSeriesSet) Warnings

Warnings implements storage.SeriesSet.

Jump to

Keyboard shortcuts

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