compaction

package
v0.74.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

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 DocBlockLocation

type DocBlockLocation = util.Pair[[]byte, uint64]

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
	DocBlocks() iter.Seq2[DocBlockLocation, error]
}

Jump to

Keyboard shortcuts

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