lsm

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PartSize = 16 << 20
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node[T any] struct {
	// contains filtered or unexported fields
}

func (*Node[T]) Iterate

func (n *Node[T]) Iterate(f func(*Node[T]) error) error

func (*Node[T]) Prepend

func (n *Node[T]) Prepend(part T) *Node[T]

type Tree

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

func New

func New(db *badger.DB, seq *seq.Seq) (*Tree, error)

func (*Tree) Append

func (t *Tree) Append(resource v1.RESOURCE, id, minTs, maxTs uint64)

func (*Tree) Close

func (t *Tree) Close() error

func (*Tree) Compact

func (t *Tree) Compact() error

func (*Tree) Flush

func (t *Tree) Flush()

func (*Tree) Scan

func (t *Tree) Scan(resource v1.RESOURCE, start, end uint64) (*bitmaps.Bitmap, error)

func (*Tree) Size

func (t *Tree) Size() uint64

func (*Tree) Start

func (t *Tree) Start(ctx context.Context)

Jump to

Keyboard shortcuts

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