object_probe_index

package
v0.0.0-...-ed7c31d Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DigitWidth = 1
	PageCount  = 1 << (DigitWidth * 4)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

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

func MakeNoDuplicates

func MakeNoDuplicates(
	envRepo env_repo.Env,
	dir string,
	hashType markl.FormatHash,
) (index *Index, err error)

func MakePermitDuplicates

func MakePermitDuplicates(
	envRepo env_repo.Env,
	path string,
	hashType markl.FormatHash,
) (index *Index, err error)

func (*Index) AddDigest

func (index *Index) AddDigest(
	probeId ids.ProbeIdWithObjectId,
	loc Loc,
) (err error)

func (*Index) Flush

func (index *Index) Flush() (err error)

func (*Index) GetHashType

func (index *Index) GetHashType() markl.FormatHash

func (*Index) PrintAll

func (index *Index) PrintAll(env env_ui.Env) (err error)

func (*Index) ReadMany

func (index *Index) ReadMany(
	originalId domain_interfaces.MarklId,
	locations *[]Loc,
) (err error)

func (*Index) ReadOne

func (index *Index) ReadOne(
	originalId domain_interfaces.MarklId,
) (loc Loc, err error)

func (*Index) Reset

func (index *Index) Reset() (err error)

type Loc

type Loc struct {
	Page uint8
	ohio.Cursor
}

func (Loc) IsEmpty

func (loc Loc) IsEmpty() bool

func (*Loc) ReadFrom

func (loc *Loc) ReadFrom(reader io.Reader) (n int64, err error)

func (Loc) String

func (loc Loc) String() string

func (*Loc) WriteTo

func (loc *Loc) WriteTo(writer io.Writer) (n int64, err error)

Source Files

  • loc.go
  • main.go
  • page.go
  • page_flush.go
  • row.go
  • search.go

Jump to

Keyboard shortcuts

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