compaction

package
v0.81.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 26 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Merge

func Merge(filename string, params common.SealParams, srcs ...Source) (*sealed.PreloadedData, error)

func NewPlanner

func NewPlanner(ctx context.Context, fm *fracmanager.FracManager, cfg Config) *planner

Types

type Config

type Config struct {
	Enabled bool

	MergeTrigger    int
	MergeFanIn      int
	MergeFanOutSize uint64

	BucketLowerbound float64
	BucketUpperbound float64

	Workers      int
	TimeWindow   time.Duration
	TickInterval time.Duration
}

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

func NewExecutor

func NewExecutor(workers int, params common.SealParams, p *planner) *Executor

func (*Executor) Stop

func (e *Executor) Stop()

type MergeSource

type MergeSource struct {
	// contains filtered or unexported fields
}

func NewMergeSource

func NewMergeSource(filename string, sources []Source) *MergeSource

func (*MergeSource) BlockOffsets

func (s *MergeSource) BlockOffsets() []uint64

func (*MergeSource) IDs

func (*MergeSource) Info

func (s *MergeSource) Info() *common.Info

func (*MergeSource) TokenTriplets

func (s *MergeSource) TokenTriplets() iter.Seq2[string, iter.Seq2[indexwriter.TokenLIDs, error]]

type Source

type Source interface {
	indexwriter.Source
	DocsReader() (io.ReadCloser, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL