Versions in this module Expand all Collapse all v1 v1.8.2 Nov 4, 2017 Changes in this version + const ChunkLen + const Clone + const CreateAndPin + const Drop + const Evict + const Load + const OpTypeLabel + const PersistAndUnpin + const Pin + const Transcode + const Unpin + var DefaultEncoding = DoubleDelta + var DescOps = prometheus.NewCounterVec(prometheus.CounterOpts{ ... }, []string{ ... }) + var NumMemChunks int64 + var NumMemDescs = prometheus.NewGauge(prometheus.GaugeOpts{ ... }) + var Ops = prometheus.NewCounterVec(prometheus.CounterOpts{ ... }, []string{ ... }) + func RangeValues(it Iterator, in metric.Interval) ([]model.SamplePair, error) + type Chunk interface + Add func(sample model.SamplePair) ([]Chunk, error) + Clone func() Chunk + Encoding func() Encoding + FirstTime func() model.Time + Len func() int + Marshal func(io.Writer) error + MarshalToBuf func([]byte) error + NewIterator func() Iterator + Unmarshal func(io.Reader) error + UnmarshalFromBuf func([]byte) error + Utilization func() float64 + func New() Chunk + func NewForEncoding(encoding Encoding) (Chunk, error) + type Desc struct + C Chunk + ChunkFirstTime model.Time + ChunkLastTime model.Time + EvictListElement *list.Element + func NewDesc(c Chunk, firstTime model.Time) *Desc + func (d *Desc) Add(s model.SamplePair) ([]Chunk, error) + func (d *Desc) FirstTime() model.Time + func (d *Desc) IsEvicted() bool + func (d *Desc) LastTime() (model.Time, error) + func (d *Desc) MaybeEvict() bool + func (d *Desc) MaybePopulateLastTime() error + func (d *Desc) Pin(evictRequests chan<- EvictRequest) + func (d *Desc) RefCount() int + func (d *Desc) SetChunk(c Chunk) + func (d *Desc) Unpin(evictRequests chan<- EvictRequest) + type Encoding byte + const Delta + const DoubleDelta + const Varbit + func (e *Encoding) Set(s string) error + func (e Encoding) String() string + type EvictRequest struct + Desc *Desc + Evict bool + type Iterator interface + Contains func(model.Time) (bool, error) + Err func() error + FindAtOrAfter func(model.Time) bool + FindAtOrBefore func(model.Time) bool + LastTimestamp func() (model.Time, error) + Scan func() bool + Value func() model.SamplePair