Documentation ¶
Index ¶
- func LabelsToSeriesSet(ls []labels.Labels) storage.SeriesSet
- func MatrixToSeriesSet(m model.Matrix) storage.SeriesSet
- func NewConcreteSeriesIterator(series *ConcreteSeries) chunkenc.Iterator
- func NewConcreteSeriesSetFromSortedSeries(series []storage.Series) storage.SeriesSet
- func NewConcreteSeriesSetFromUnsortedSeries(series []storage.Series) storage.SeriesSet
- func NewErrIterator(err error) chunkenc.Iterator
- func NewSeriesSetWithWarnings(wrapped storage.SeriesSet, warnings annotations.Annotations) storage.SeriesSet
- type ConcreteSeries
- type ConcreteSeriesSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LabelsToSeriesSet ¶
LabelsToSeriesSet creates a storage.SeriesSet from a []labels.Labels
func MatrixToSeriesSet ¶
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 ¶
NewConcreteSeriesSetFromSortedSeries instantiates an in-memory series set from a slice of series already sorted by their labels.
func NewConcreteSeriesSetFromUnsortedSeries ¶
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 ¶
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 ¶
func (c *ConcreteSeries) Iterator(_ chunkenc.Iterator) chunkenc.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 ¶
func (c *ConcreteSeriesSet) At() storage.Series
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 ¶
func (c *ConcreteSeriesSet) Warnings() annotations.Annotations
Warnings implements storage.SeriesSet.