Versions in this module Expand all Collapse all v0 v0.2.0 Jan 24, 2026 v0.1.0 Jan 23, 2026 Changes in this version + type Candidate struct + DeadBytes uint64 + DeadRatio float64 + FileID uint32 + TotalBytes uint64 + type Compactor struct + func New(d *db.DB) *Compactor + func (c *Compactor) Candidates(opts Options) ([]Candidate, error) + func (c *Compactor) CompactCandidates(opts Options) error + func (c *Compactor) CompactCandidatesWithContext(ctx context.Context, opts Options) error + func (c *Compactor) CompactSlab(id uint32) error + func (c *Compactor) CompactSlabWithContext(ctx context.Context, id uint32, opts Options) error + func (c *Compactor) CompactSlabWithOptions(id uint32, opts Options) error + type Options struct + Assist func() + CopyBurstBytes int64 + CopyBytesPerSec int64 + DeadRatioThreshold float64 + IndexSwap bool + LiveSetMaxEntries int + MaxSlabs int + MicroBatchSize int + MinTotalBytes uint64 + RotateBeforeWrite bool + Stats *Stats + type Stats struct + LiveSetAborted bool + LiveSetBloom bool + LiveSetEntries uint64 + TreeLookups uint64 + TreeLookupsSkipped uint64