Versions in this module Expand all Collapse all v2 v2.4.3 Feb 9, 2022 Changes in this version + const BatchSize + const ChunkLen + const CreateAndPin + const Drop + const ErrSliceChunkOverflow + const ErrSliceNoDataInRange + const Evict + const Load + const OpTypeLabel + const PersistAndUnpin + const Pin + const Transcode + const Unpin + var DefaultEncoding = Bigchunk + var NumMemChunks int64 + func MustRegisterEncoding(enc Encoding, name string, f func() Chunk) + func RangeValues(it Iterator, in metric.Interval) ([]model.SamplePair, error) + type Batch struct + Index int + Length int + Timestamps [BatchSize]int64 + Values [BatchSize]float64 + type Chunk interface + Add func(sample model.SamplePair) (Chunk, error) + Encoding func() Encoding + Len func() int + Marshal func(io.Writer) error + NewIterator func(Iterator) Iterator + Rebound func(start, end model.Time) (Chunk, error) + Size func() int + Slice func(start, end model.Time) Chunk + UnmarshalFromBuf func([]byte) error + Utilization func() float64 + func New() Chunk + func NewForEncoding(encoding Encoding) (Chunk, error) + type Config struct + func (Config) RegisterFlags(f *flag.FlagSet) + func (Config) Validate() error + type Encoding byte + const Bigchunk + const Delta + const DoubleDelta + const PrometheusXorChunk + const Varbit + func (e *Encoding) Set(s string) error + func (e Encoding) String() string + type Iterator interface + Batch func(size int) Batch + Err func() error + FindAtOrAfter func(model.Time) bool + Scan func() bool + Value func() model.SamplePair