factory

package
v0.0.0-...-96a6292 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SortEngineFactory

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

SortEngineFactory is a manager to create or drop SortEngine.

func NewForPebble

func NewForPebble(dir string, memQuotaInBytes uint64, cfg *config.DBConfig) *SortEngineFactory

NewForPebble will create a SortEngineFactory for the pebble implementation.

func (*SortEngineFactory) Close

func (f *SortEngineFactory) Close() (err error)

Close will close all created engines and release all resources.

func (*SortEngineFactory) Create

func (f *SortEngineFactory) Create(ID model.ChangeFeedID) (e sorter.SortEngine, err error)

Create creates a SortEngine. If an engine with same ID already exists, it will be returned directly.

func (*SortEngineFactory) Drop

Drop cleans the given event sort engine.

Jump to

Keyboard shortcuts

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