compactv2

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChangeLog

func NewChangeLog(w io.Writer) *changeLog

func NewDelGenericSeriesIterator

func NewDelGenericSeriesIterator(
	chks chunks.Iterator,
	intervals tombstones.Intervals,
	logDelete func(intervals tombstones.Intervals),
) *delGenericSeriesIterator

func NewProgressLogger

func NewProgressLogger(logger log.Logger, series int) *progressLogger

Types

type ChangeLogger

type ChangeLogger interface {
	DeleteSeries(del labels.Labels, intervals tombstones.Intervals)
	ModifySeries(old labels.Labels, new labels.Labels)
}

type Compactor

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

func New

func New(tmpDir string, logger log.Logger, changeLogger ChangeLogger, pool chunkenc.Pool) *Compactor

func NewDryRun

func NewDryRun(tmpDir string, logger log.Logger, changeLogger ChangeLogger, pool chunkenc.Pool) *Compactor

func (*Compactor) WriteSeries

func (w *Compactor) WriteSeries(ctx context.Context, readers []block.Reader, sWriter block.Writer, p ProgressLogger, modifiers ...Modifier) (err error)

TODO(bwplotka): Upstream this.

type DeletionModifier

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

func WithDeletionModifier

func WithDeletionModifier(deletions ...metadata.DeletionRequest) *DeletionModifier

type Modifier

type Modifier interface {
	Modify(sym index.StringIter, set storage.ChunkSeriesSet, log ChangeLogger, p ProgressLogger) (index.StringIter, storage.ChunkSeriesSet)
}

type ProgressLogger

type ProgressLogger interface {
	SeriesProcessed()
}

type RelabelModifier added in v0.21.0

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

func WithRelabelModifier added in v0.21.0

func WithRelabelModifier(relabels ...*relabel.Config) *RelabelModifier

func (*RelabelModifier) Modify added in v0.21.0

Jump to

Keyboard shortcuts

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