dedup

package
v0.32.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PushdownMarker = labels.Label{Name: "__thanos_pushed_down", Value: "true"}

PushdownMarker is a label that gets attached on pushed down series so that the receiver would be able to handle them in potentially special way.

Functions

func NewBoundedSeriesIterator

func NewBoundedSeriesIterator(it chunkenc.Iterator, mint, maxt int64) *boundedSeriesIterator

func NewChunkSeriesMerger added in v0.22.0

func NewChunkSeriesMerger() storage.VerticalChunkSeriesMergeFunc

NewChunkSeriesMerger merges several chunk series into one. Deduplication is based on penalty based deduplication algorithm without handling counter reset.

func NewOverlapSplit added in v0.31.0

func NewOverlapSplit(set storepb.SeriesSet) storepb.SeriesSet

NewOverlapSplit splits overlapping chunks into separate series entry, so existing algorithm can work as usual. We cannot do this in dedup.SeriesSet as it iterates over samples already. TODO(bwplotka): Remove when we move to per chunk deduplication code. We expect non-duplicated series with sorted chunks by min time (possibly overlapped).

func NewSeriesSet

func NewSeriesSet(set storage.SeriesSet, f string, pushdownEnabled bool) storage.SeriesSet

NewSeriesSet returns seriesSet that deduplicates the same series. The series in series set are expected be sorted by all labels.

Types

This section is empty.

Jump to

Keyboard shortcuts

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