posting

package
v0.0.0-...-96430a3 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyPostings = errPostings{}

Functions

func NewListPostings

func NewListPostings(list []uint64) *listPostings

func NewMergedPostings

func NewMergedPostings(a, b Postings) *mergedPostings

Types

type InvertListReader

type InvertListReader interface {
	Init(offset, end, length uint64)
	Next() bool
	Block() []byte
}

type Postings

type Postings interface {
	// Next advances the iterator and returns true if another value was found.
	Next() bool

	// Seek advances the iterator to value v or greater and returns
	// true if a value was found.
	Seek(v uint64) bool

	// At returns the value at the current iterator position.
	At() uint64

	// Err returns the last error of the iterator.
	Err() error
}

Postings provides iterative access over a postings list.

func Intersect

func Intersect(its ...Postings) Postings

Intersect returns a new postings list over the intersection of the input postings.

func Merge

func Merge(its ...Postings) Postings

Jump to

Keyboard shortcuts

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