indexer

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FilerByteSize int = datafile.FileIDByteSize + 8 + 8
)

Variables

This section is empty.

Functions

func NewFilerIndexer

func NewFilerIndexer(ctx runtime.Context) *filerIndex

func NewTTLIndexer

func NewTTLIndexer(ctx runtime.Context) *ttlIndexer

Types

type Filer

type Filer struct {
	FileID datafile.FileID
	Index  int64
	Size   int64
}

Filer represents the location of the value on disk. This is used by the internal Adaptive Radix Tree to hold an in-memory structure mapping keys to locations on disk of where the value(s) can be read from.

type Indexer

type Indexer interface {
	Load(path string) (art.Tree, bool, error)
	Save(t art.Tree, path string) error
}

Indexer is an interface for loading and saving the index (an Adaptive Radix Tree)

Jump to

Keyboard shortcuts

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