index

package
v0.0.0-...-251bb73 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index interface {
	Put(key string, value *Set) error
	Get(key string) (*Set, error)
	Delete(key string) error
}

func NewIndex

func NewIndex() Index

type Set

type Set struct {
	FileId        string
	ValueSize     int64
	ValuePosition int64
	Tstamp        int64
}

func NewSet

func NewSet(fileName string, valueSize, valuePosition, tstamp int64) *Set

func NewSetFromRecord

func NewSetFromRecord(fileName string, offset int64, r record.Record) *Set

Jump to

Keyboard shortcuts

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