index

package
v0.0.0-...-9884c13 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: Apache-2.0 Imports: 5 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 struct {
	// contains filtered or unexported fields
}

func NewIndex

func NewIndex(indexPath string, bitsForBucket, itemsPerBucket, indexSize int64) (*Index, error)

func OpenIndex

func OpenIndex(indexPath string, bitsForBucket, itemsPerBucket, indexSize int64) (*Index, error)

func (*Index) Append

func (i *Index) Append(hash crypto.Hash, epoch uint64, offset int)

func (*Index) Close

func (i *Index) Close()

func (*Index) Get

func (i *Index) Get(hash crypto.Hash, starting uint64) []IndexPosition

type IndexPosition

type IndexPosition struct {
	Epoch  uint64
	Offset int64
}

Jump to

Keyboard shortcuts

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