seqids

package
v0.78.4 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache

func NewCache() *unpackCache

Types

type BlockMIDs

type BlockMIDs struct {
	Values []uint64
}

func (BlockMIDs) Pack

func (b BlockMIDs) Pack(dst []byte, buf []uint64) []byte

func (*BlockMIDs) Unpack

func (b *BlockMIDs) Unpack(data []byte, fracVer config.BinaryDataVersion, cache *unpackCache) error

type BlockParams

type BlockParams struct {
	Values []uint64
}

func (BlockParams) Pack

func (b BlockParams) Pack(dst []byte) []byte

func (*BlockParams) Unpack

func (b *BlockParams) Unpack(data []byte) error

type BlockRIDs

type BlockRIDs struct {
	Values []uint64
	// contains filtered or unexported fields
}

func (BlockRIDs) Pack

func (b BlockRIDs) Pack(dst []byte) []byte

func (*BlockRIDs) Unpack

func (b *BlockRIDs) Unpack(data []byte) error

type Loader

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

func (*Loader) GetMIDsBlock

func (l *Loader) GetMIDsBlock(index uint32, unpackCache *unpackCache) (BlockMIDs, error)

func (*Loader) GetParamsBlock

func (l *Loader) GetParamsBlock(index uint32) (BlockParams, error)

func (*Loader) GetRIDsBlock

func (l *Loader) GetRIDsBlock(index uint32) (BlockRIDs, error)

type Provider

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

func NewProvider

func NewProvider(
	indexReader *storage.IndexReader,
	cacheMIDs cache.Cache[[]byte],
	cacheRIDs cache.Cache[BlockRIDs],
	cacheParams cache.Cache[BlockParams],
	table *Table,
	fracVersion config.BinaryDataVersion,
) *Provider

func (*Provider) DocPos

func (p *Provider) DocPos(lid seq.LID) (seq.DocPos, error)

func (*Provider) MID

func (p *Provider) MID(lid seq.LID) (seq.MID, error)

func (*Provider) MIDs added in v0.72.0

func (p *Provider) MIDs(lids []node.LID, out []seq.MID) ([]seq.MID, error)

func (*Provider) RID

func (p *Provider) RID(lid seq.LID) (seq.RID, error)

func (*Provider) RIDs added in v0.72.0

func (p *Provider) RIDs(lids []node.LID, out []seq.RID) ([]seq.RID, error)

func (*Provider) Release

func (p *Provider) Release()

type Table

type Table struct {
	MinBlockIDs     []seq.ID // From max to min.
	IDsTotal        uint32   // Actually, this is LIDs count.
	StartBlockIndex uint32
}

func (Table) BlockStartLID

func (Table) BlockStartLID(blockIndex uint32) uint32

func (Table) GetIDBlockIndexByLID

func (Table) GetIDBlockIndexByLID(lid uint32) uint32

Jump to

Keyboard shortcuts

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