Versions in this module Expand all Collapse all v0 v0.11.0 Aug 13, 2026 v0.10.0 Jul 24, 2026 Changes in this version + type Collector struct + func NewCollector[T any]() *Collector[T] + func (c *Collector[T]) Lookup(label, prop uint32) (*Stats[T], bool) + func (c *Collector[T]) Publish(byKey map[Key]*Stats[T]) + func (c *Collector[T]) RecordDelete(label, prop uint32) + func (c *Collector[T]) RecordWrite(label, prop uint32) + func (c *Collector[T]) Size() int + func (c *Collector[T]) TrackedLabelsForProp(prop uint32) []uint32 + func (c *Collector[T]) Tracking() bool + type Domain uint8 + type HLL struct + func NewHLL() *HLL + func (h *HLL) Bytes() int + func (h *HLL) Estimate() float64 + func (h *HLL) Insert(hash uint64) + type Histogram struct + func BuildEquiDepth[T any](values []T, freqs []int64, b int, isHeavy func(T) bool) *Histogram[T] + func (h *Histogram[T]) BucketError() float64 + func (h *Histogram[T]) Buckets() int + func (h *Histogram[T]) Selectivity(bound T, op Op, cmp func(a, b T) int) float64 + func (h *Histogram[T]) Total() int64 + type Input struct + Buckets int + Generation uint64 + Histograms map[Domain]*Histogram[T] + LabelCount int64 + MCV *MCVList[T] + NDV *HLL + type Key struct + Label uint32 + Prop uint32 + type MCVEntry struct + Count int64 + Hash uint64 + Value T + type MCVList struct + func BuildTopK[T any](all []MCVEntry[T], k int) *MCVList[T] + func (l *MCVList[T]) Entries() []MCVEntry[T] + func (l *MCVList[T]) Len() int + func (l *MCVList[T]) Lookup(hash uint64, value T, eq func(a, b T) bool) (int64, bool) + type Op uint8 + const OpGe + const OpGt + const OpLe + const OpLt + type Stats struct + MCV *MCVList[T] + NDV *HLL + func NewStats[T any](in Input[T]) *Stats[T] + func (s *Stats[T]) Buckets() int + func (s *Stats[T]) Deletes() int64 + func (s *Stats[T]) Delta() int64 + func (s *Stats[T]) Generation() uint64 + func (s *Stats[T]) Histogram(d Domain) (*Histogram[T], bool) + func (s *Stats[T]) LabelCount() int64 + func (s *Stats[T]) NeedsRebuildForDeletes(tol float64) bool + func (s *Stats[T]) RecordDelete() + func (s *Stats[T]) RecordWrite()