batch

package
v0.0.0-...-cae4bf4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChunkMergeIterator

func NewChunkMergeIterator(chunks []chunk.Chunk, _, _ model.Time) chunkenc.Iterator

NewChunkMergeIterator returns a storage.SeriesIterator that merges Cortex chunks together.

func NewGenericChunkMergeIterator

func NewGenericChunkMergeIterator(chunks []GenericChunk) chunkenc.Iterator

NewGenericChunkMergeIterator returns a storage.SeriesIterator that merges generic chunks together.

Types

type GenericChunk

type GenericChunk struct {
	MinTime int64
	MaxTime int64
	// contains filtered or unexported fields
}

GenericChunk is a generic chunk used by the batch iterator, in order to make the batch iterator general purpose.

func NewGenericChunk

func NewGenericChunk(minTime, maxTime int64, iterator func(reuse encoding.Iterator) encoding.Iterator) GenericChunk

func (GenericChunk) Iterator

func (c GenericChunk) Iterator(reuse encoding.Iterator) encoding.Iterator

Jump to

Keyboard shortcuts

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