batch

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: Apache-2.0 Imports: 7 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 chunkenc.Iterator that merges Cortex chunks together.

func NewGenericChunkMergeIterator added in v1.2.0

func NewGenericChunkMergeIterator(chunks []GenericChunk) chunkenc.Iterator

NewGenericChunkMergeIterator returns a chunkenc.Iterator that merges generic chunks together.

Types

type GenericChunk added in v1.2.0

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 added in v1.2.0

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

func (GenericChunk) Iterator added in v1.2.0

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