package
0.7.0
Repository: https://github.com/cortexproject/cortex.git
Documentation: pkg.go.dev

# Functions

MustRegisterEncoding add a new chunk encoding.
New creates a new chunk according to the encoding set by the DefaultEncoding flag.
NewForEncoding allows configuring what chunk type you want.
RangeValues is a utility function that retrieves all values within the given range from an Iterator.

# Constants

BatchSize is samples per batch; this was choose by benchmarking all sizes from 1 to 128.
Bigchunk encoding.
ChunkLen is the length of a chunk in bytes.
A Desc creation with refCount=1.
Delta encoding is no longer supported and will be automatically changed to DoubleDelta.
DoubleDelta encoding.
Drop is the label value for drop chunk ops.
Evict is the label value for evict chunk desc ops.
Load is the label value for load chunk and chunk desc ops.
OpTypeLabel is the label name for chunk operation types.
PersistAndUnpin is the label value for persist chunk ops.
Pin is the label value for pin chunk ops (excludes pin on creation).
Transcode is the label value for transcode chunk ops.
Unpin is the label value for unpin chunk ops (excludes the unpin on persisting).
Varbit encoding.

# Variables

DefaultEncoding exported for use in unit tests elsewhere.
Usually, a separate file for instrumentation is frowned upon.
NumMemChunks is the total number of chunks in memory.
Usually, a separate file for instrumentation is frowned upon.
Usually, a separate file for instrumentation is frowned upon.

# Structs

Batch is a sorted set of (timestamp, value) pairs.
Config configures the behaviour of chunk encoding.

# Interfaces

Chunk is the interface for all chunks.
Iterator enables efficient access to the content of a chunk.

# Type aliases

Encoding defines which encoding we are using, delta, doubledelta, or varbit.