dbutils

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 16 Imported by: ? modules, 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

View Source
const LockSuffix = ".lock"

Variables

This section is empty.

Functions

func FormatMemStats

func FormatMemStats(memstats runtime.MemStats) string

func IsRetrieableCheckpoint added in v1.2.0

func IsRetrieableCheckpoint(err error) bool

func MakeDefaultSmallPool added in v1.0.0

func MakeDefaultSmallPool(name string) *containers.VectorPool

func MakeDefaultTransientPool

func MakeDefaultTransientPool(name string) *containers.VectorPool

func MakeLockFileName

func MakeLockFileName(dirname string, name string) string

func PrintMemStats

func PrintMemStats()

Types

type Runtime

type Runtime struct {
	Now        func() types.TS
	VectorPool struct {
		Small     *containers.VectorPool
		Transient *containers.VectorPool
	}

	Fs *objectio.ObjectFS

	TransferTable   *model.HashPageTable
	TransferDelsMap *model.TransDelsForBlks
	Scheduler       tasks.TaskScheduler

	Options *options.Options

	Logtail struct {
		CompactStats stats.Counter
	}
}

func NewRuntime

func NewRuntime(opts ...RuntimeOption) *Runtime

func (*Runtime) ExportLogtailStats added in v1.0.0

func (r *Runtime) ExportLogtailStats() string

func (*Runtime) PrintVectorPoolUsage

func (r *Runtime) PrintVectorPoolUsage()

type RuntimeOption

type RuntimeOption func(*Runtime)

func WithRuntimeObjectFS

func WithRuntimeObjectFS(fs *objectio.ObjectFS) RuntimeOption

func WithRuntimeOptions

func WithRuntimeOptions(opts *options.Options) RuntimeOption

func WithRuntimeScheduler

func WithRuntimeScheduler(s tasks.TaskScheduler) RuntimeOption

func WithRuntimeSmallPool added in v1.0.0

func WithRuntimeSmallPool(vp *containers.VectorPool) RuntimeOption

func WithRuntimeTransferTable

func WithRuntimeTransferTable(tt *model.HashPageTable) RuntimeOption

func WithRuntimeTransientPool

func WithRuntimeTransientPool(vp *containers.VectorPool) RuntimeOption

Jump to

Keyboard shortcuts

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